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