diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2021-01-03 14:59:14 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2021-01-03 14:59:14 (GMT) |
| commit | 3813eb29114d7c2fd73584c8a3a0ab89238bfe84 (patch) | |
| tree | dd899c16fcabc2330b069b52260e2009035f63e5 /wasp/wasp.py | |
| parent | 231f3b6fdd531b1f3fcec927bc297f4c89853aec (diff) | |
manager: Enable Software by default
Enabling software by default allows us disable several other applications
by default because there is now a GUI based route to enable them.
This does require a few tweaks to the test suite and allows allows us to
remove a lot of boilerplate text from the application library document
since it is no longer relavent.
Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
Diffstat (limited to 'wasp/wasp.py')
| -rw-r--r-- | wasp/wasp.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/wasp/wasp.py b/wasp/wasp.py index de572e5..79f706c 100644 --- a/wasp/wasp.py +++ b/wasp/wasp.py @@ -21,14 +21,13 @@ import watch import widgets from apps.clock import ClockApp -from apps.flashlight import FlashlightApp from apps.heart import HeartApp from apps.launcher import LauncherApp from apps.pager import PagerApp, CrashApp, NotificationApp from apps.settings import SettingsApp from apps.steps import StepCounterApp +from apps.software import SoftwareApp from apps.stopwatch import StopwatchApp -from apps.testapp import TestApp class EventType(): """Enumerated interface actions. @@ -151,9 +150,8 @@ class Manager(): (StepCounterApp, True), (StopwatchApp, True), (HeartApp, True), - (FlashlightApp, False), - (SettingsApp, False), - (TestApp, False) ): + (SoftwareApp, False), + (SettingsApp, False) ): try: self.register(app(), qr) except: @@ -172,6 +170,12 @@ class Manager(): self.launcher_ring.append(app) self.launcher_ring.sort(key = _key_app) + def unregister(self, cls): + for app in self.launcher_ring: + if instanceof(app, cls): + self.launcher_ring.remove(app) + break + @property def brightness(self): """Cached copy of the brightness current written to the hardware.""" |
