Skip to content

Commit

Permalink
Merge pull request #151 from cbenhagen/sleep
Browse files Browse the repository at this point in the history
Add empty sleep and wake methods
  • Loading branch information
daredoes committed Apr 8, 2022
2 parents 4e9959e + a7662c6 commit e2bacc8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions rumps/rumps.py
Original file line number Diff line number Diff line change
Expand Up @@ -1202,3 +1202,17 @@ def run(self, **options):
AppHelper.installMachInterrupt()
events.before_start.emit()
AppHelper.runEventLoop()

def sleep(self):
"""Method being run when system is going to sleep
To be overridden in your app
"""
pass

def wake(self):
"""Method being run when system awakes from sleep
To be overridden in your app
"""
pass

0 comments on commit e2bacc8

Please sign in to comment.