Skip to content

Instantly share code, notes, and snippets.

@Kozova1
Created December 29, 2020 13:11
Show Gist options
  • Save Kozova1/3015083dbb779c8d5fbd217f51e01a28 to your computer and use it in GitHub Desktop.
Save Kozova1/3015083dbb779c8d5fbd217f51e01a28 to your computer and use it in GitHub Desktop.
import wasp
from apps.tabs import TabsApp
class TestApp2(TabsApp):
NAME = "Test2"
def __init__(self):
super().__init__(("p1", "p2", "END"))
def foreground(self):
super().foreground()
wasp.system.request_event(wasp.EventMask.SWIPE_LEFTRIGHT)
def swipe(self, event):
super().swipe(event)
self._draw()
def _draw(self):
draw = wasp.watch.drawable
draw.string(self.tabs[self.current_tab], 0, 108, 240)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment