summaryrefslogtreecommitdiff
path: root/wasp/apps/stopwatch.py
diff options
context:
space:
mode:
Diffstat (limited to 'wasp/apps/stopwatch.py')
-rw-r--r--wasp/apps/stopwatch.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/wasp/apps/stopwatch.py b/wasp/apps/stopwatch.py
new file mode 100644
index 0000000..60c0f9f
--- /dev/null
+++ b/wasp/apps/stopwatch.py
@@ -0,0 +1,19 @@
+# SPDX-License-Identifier: LGPL-3.0-or-later
+# Copyright (C) 2020 Daniel Thompson
+
+import wasp
+import icons
+
+class StopwatchApp():
+ NAME = 'Stopwatch'
+ ICON = icons.app
+
+ def foreground(self):
+ """Activate the application."""
+ self._draw()
+
+ def _draw(self):
+ """Draw the display from scratch."""
+ draw = wasp.watch.drawable
+ draw.fill()
+ draw.string(self.NAME, 0, 6, width=240)