Created
December 29, 2020 13:11
-
-
Save Kozova1/3015083dbb779c8d5fbd217f51e01a28 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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