pikapython/test/python/PikaUI/test_page.py
lyon 93f22cb39e auto scan backend for PikaUI
cancel PikaUI_core
2023-02-22 23:08:34 +08:00

18 lines
297 B
Python

import PikaUI as ui
from PikaStdLib import MemChecker as mem
page1 = ui.Page().add(
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()