diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-04-05 08:43:26 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-04-06 21:04:20 (GMT) |
| commit | 83cc56969e13d1e0e3ea4b2a6b8c9c6875110688 (patch) | |
| tree | c2b6558cc7f55368d2d4e57efd2357937c3b6c4c /wasp/apps/testapp.py | |
| parent | 6a6e393d1fc389102733fe182ea41b803bd05755 (diff) | |
wasp: manager: make sleep() and background() callbacks optional
Making callbacks optional reduces pointless boilerplate in applications.
Diffstat (limited to 'wasp/apps/testapp.py')
| -rw-r--r-- | wasp/apps/testapp.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/wasp/apps/testapp.py b/wasp/apps/testapp.py index 849ed5f..e7016d7 100644 --- a/wasp/apps/testapp.py +++ b/wasp/apps/testapp.py @@ -20,13 +20,6 @@ class TestApp(): wasp.EventMask.SWIPE_UPDOWN | wasp.EventMask.BUTTON) - def background(self): - """De-activate the application (without losing state).""" - pass - - def sleep(self): - return False - def press(self, button, state): draw = wasp.watch.drawable if self.test == 'Touch': |
