mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
17 lines
327 B
Python
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()
|