pikapython/test/python/PikaUI/test_page.py
2023-02-23 00:36:08 +08:00

17 lines
327 B
Python

import PikaUI as ui
from PikaStdLib import MemChecker as mem
class Page1(ui.Page):
def build(self):
return ui.Text('Hello Page1')
class Page2(ui.Page):
def build(self):
return ui.Text('Hello Page2')
app = ui.App()
app.pageManager.enter(Page1())
app.pageManager.enter(Page2())
app.pageManager.back()