summaryrefslogtreecommitdiff
path: root/wasp/apps
diff options
context:
space:
mode:
Diffstat (limited to 'wasp/apps')
-rw-r--r--wasp/apps/clock.py8
-rw-r--r--wasp/apps/testapp.py3
2 files changed, 2 insertions, 9 deletions
diff --git a/wasp/apps/clock.py b/wasp/apps/clock.py
index 3292120..9225cc9 100644
--- a/wasp/apps/clock.py
+++ b/wasp/apps/clock.py
@@ -29,14 +29,6 @@ class ClockApp():
def __init__(self):
self.meter = wasp.widgets.BatteryMeter()
- def handle_event(self, event_view):
- """Process events that the app is subscribed to."""
- if event_view[0] == wasp.Event.TICK:
- self.update()
- else:
- # TODO: Raise an unexpected event exception
- pass
-
def foreground(self, effect=None):
"""Activate the application."""
self.on_screen = ( -1, -1, -1, -1, -1, -1 )
diff --git a/wasp/apps/testapp.py b/wasp/apps/testapp.py
index 40e8cce..857ba4b 100644
--- a/wasp/apps/testapp.py
+++ b/wasp/apps/testapp.py
@@ -16,7 +16,8 @@ class TestApp():
"""Activate the application."""
self.on_screen = ( -1, -1, -1, -1, -1, -1 )
self.draw(effect)
- wasp.system.request_event(wasp.Event.TOUCH | wasp.Event.SWIPE_UPDOWN)
+ wasp.system.request_event(wasp.EventMask.TOUCH |
+ wasp.EventMask.SWIPE_UPDOWN)
def background(self):
"""De-activate the application (without losing state)."""