summaryrefslogtreecommitdiff
path: root/wasp/apps/hello.py
diff options
context:
space:
mode:
Diffstat (limited to 'wasp/apps/hello.py')
-rw-r--r--wasp/apps/hello.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/wasp/apps/hello.py b/wasp/apps/hello.py
new file mode 100644
index 0000000..586082a
--- /dev/null
+++ b/wasp/apps/hello.py
@@ -0,0 +1,19 @@
+# SPDX-License-Identifier: MY-LICENSE
+# Copyright (C) YEAR(S), AUTHOR
+
+import wasp
+
+class HelloApp():
+ """A hello world application for wasp-os."""
+ NAME = "Hello"
+
+ def __init__(self, msg="Hello, world!"):
+ self.msg = msg
+
+ def foreground(self):
+ self._draw()
+
+ def _draw(self):
+ draw = wasp.watch.drawable
+ draw.fill()
+ draw.string(self.msg, 0, 108, width=240)