diff options
| author | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-04-05 08:48:03 (GMT) |
|---|---|---|
| committer | Daniel Thompson <daniel@redfelineninja.org.uk> | 2020-04-06 21:04:21 (GMT) |
| commit | 2b5ebcef727af5d99ebaee224545510b668d63ae (patch) | |
| tree | e9f084497ff8a4a041a38fd830d62f862bd32040 /wasp/apps/testapp.py | |
| parent | bb4e76d85222c263c4486ad1722df44200fcabf2 (diff) | |
wasp: widgets: Add a scrolling indicator
As we enrich the navigation options we will increasinly need to visualize
between apps where up/down will switch us between rings and there
up/down is needed to scroll through content.
Diffstat (limited to 'wasp/apps/testapp.py')
| -rw-r--r-- | wasp/apps/testapp.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/wasp/apps/testapp.py b/wasp/apps/testapp.py index 3beca50..8c15848 100644 --- a/wasp/apps/testapp.py +++ b/wasp/apps/testapp.py @@ -11,6 +11,7 @@ class TestApp(): def __init__(self): self.tests = ('Touch', 'String', 'Button', 'Crash') self.test = self.tests[0] + self.scroll = wasp.widgets.ScrollIndicator() def foreground(self): """Activate the application.""" @@ -75,6 +76,7 @@ class TestApp(): draw.fill() draw.string('{} test'.format(self.test), 0, 6, width=240) + self.scroll.draw() if self.test == 'Crash': draw.string("Press button to", 12, 24+24) |
