summaryrefslogtreecommitdiff
path: root/wasp/apps
diff options
context:
space:
mode:
Diffstat (limited to 'wasp/apps')
-rw-r--r--wasp/apps/__init__.py1
-rw-r--r--wasp/apps/stopwatch.py19
2 files changed, 20 insertions, 0 deletions
diff --git a/wasp/apps/__init__.py b/wasp/apps/__init__.py
index 222ceb7..a5ab777 100644
--- a/wasp/apps/__init__.py
+++ b/wasp/apps/__init__.py
@@ -7,4 +7,5 @@ from apps.flashlight import FlashlightApp
from apps.launcher import LauncherApp
from apps.pager import PagerApp, CrashApp
from apps.settings import SettingsApp
+from apps.stopwatch import StopwatchApp
from apps.testapp import TestApp
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)