diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-05-10 13:10:04 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-05-11 20:44:30 (GMT) |
| commit | a2fd52ef2b8a95de9115e8b1c69ea82513356a66 (patch) | |
| tree | b1f78453148ca365a13c0a9104fd63afe62291a6 /wasp/apps/hello.py | |
| parent | bb8e95cdd488cd8451eeac96810823dd4dd6e0aa (diff) | |
docs: Introduce the Application Writer's Guide.
Diffstat (limited to 'wasp/apps/hello.py')
| -rw-r--r-- | wasp/apps/hello.py | 19 |
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) |
