summaryrefslogtreecommitdiff
path: root/wasp/apps/stopwatch.py
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-04-12 07:59:37 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-04-12 07:59:37 (GMT)
commit64afea0d0700edde10723bd243c2a4193d41063d (patch)
tree314e40f01af4b87c18f79085ce4a792135c02e26 /wasp/apps/stopwatch.py
parentb649cd1b2424fd8492cfecbc6034649ad4c2f376 (diff)
WIP: Introduce the quick_ring
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)