summaryrefslogtreecommitdiff
path: root/wasp/apps/template.py
diff options
context:
space:
mode:
authorDaniel Thompson <daniel@redfelineninja.org.uk>2020-05-10 13:10:04 (GMT)
committerDaniel Thompson <daniel@redfelineninja.org.uk>2020-05-11 20:44:30 (GMT)
commita2fd52ef2b8a95de9115e8b1c69ea82513356a66 (patch)
treeb1f78453148ca365a13c0a9104fd63afe62291a6 /wasp/apps/template.py
parentbb8e95cdd488cd8451eeac96810823dd4dd6e0aa (diff)
docs: Introduce the Application Writer's Guide.
Diffstat (limited to 'wasp/apps/template.py')
-rw-r--r--wasp/apps/template.py31
1 files changed, 29 insertions, 2 deletions
diff --git a/wasp/apps/template.py b/wasp/apps/template.py
index 4ff5c0e..e611545 100644
--- a/wasp/apps/template.py
+++ b/wasp/apps/template.py
@@ -1,13 +1,40 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
# Copyright (C) 2020 Daniel Thompson
-"""Template application implementing all application method calls.
+"""The complete set of wasp-os application entry points are documented
+below as part of a template application. Note that the template does
+not rely on any specific parent class. This is because applications in
+wasp-os can rely on *duck typing* making a class hierarchy pointless.
"""
import wasp
import icons
class TemplateApp():
- """Template application ready to use as a basis for new applications.
+ """Template application.
+
+ The template application includes every application entry point. It
+ is used as a reference guide and can also be used as a template for
+ creating new applications.
+
+ .. data:: NAME = 'Template'
+
+ Applications must provide a short ``NAME`` that is used by the
+ launcher to describe the application. Names that are longer than
+ 8 characters are likely to be abridged by the launcher in order
+ to fit on the screen.
+
+ .. data:: ICON = RLE2DATA
+
+ Applications can optionally provide an icon for display by the
+ launcher. Applications that expect to be installed on the quick
+ ring will not be listed by the launcher and need not provide any
+ icon. When no icon is provided the system will use a default
+ icon.
+
+ The icon is an opportunity to differentiate your application from others
+ so supplying an icon is strongly recommended. The icon, when provided,
+ must not be larger than 96x64.
+
"""
NAME = 'Template'
ICON = icons.app