diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-03-26 20:42:03 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-03-26 20:42:03 (GMT) |
| commit | a9413db5cf80c8ccf46782aeba8503371655d912 (patch) | |
| tree | a481b24e8c1c932d1712d734d747fcd983c332af /wasp/apps | |
| parent | 9545e60f6242b6dad6a82eec4bb8f7e3c02a579a (diff) | |
wasp: Move the constants into seperate container classes
Diffstat (limited to 'wasp/apps')
| -rw-r--r-- | wasp/apps/clock.py | 2 | ||||
| -rw-r--r-- | wasp/apps/testapp.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/wasp/apps/clock.py b/wasp/apps/clock.py index bc612b2..3292120 100644 --- a/wasp/apps/clock.py +++ b/wasp/apps/clock.py @@ -31,7 +31,7 @@ class ClockApp(): def handle_event(self, event_view): """Process events that the app is subscribed to.""" - if event_view[0] == wasp.EVENT_TICK: + if event_view[0] == wasp.Event.TICK: self.update() else: # TODO: Raise an unexpected event exception diff --git a/wasp/apps/testapp.py b/wasp/apps/testapp.py index af531eb..40e8cce 100644 --- a/wasp/apps/testapp.py +++ b/wasp/apps/testapp.py @@ -16,7 +16,7 @@ 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.Event.TOUCH | wasp.Event.SWIPE_UPDOWN) def background(self): """De-activate the application (without losing state).""" |
