2023-02-10 18:39:13 +08:00
|
|
|
import PikaUI as ui
|
2023-02-22 23:05:10 +08:00
|
|
|
from PikaStdLib import MemChecker as mem
|
2023-02-10 18:39:13 +08:00
|
|
|
|
2023-02-23 00:36:08 +08:00
|
|
|
class Page1(ui.Page):
|
|
|
|
def build(self):
|
|
|
|
return ui.Text('Hello Page1')
|
2023-02-22 21:59:28 +08:00
|
|
|
|
|
|
|
class Page2(ui.Page):
|
|
|
|
def build(self):
|
2023-02-22 23:05:10 +08:00
|
|
|
return ui.Text('Hello Page2')
|
2023-02-22 21:59:28 +08:00
|
|
|
|
|
|
|
|
|
|
|
app = ui.App()
|
2023-02-23 00:36:08 +08:00
|
|
|
app.pageManager.enter(Page1())
|
2023-02-24 00:57:46 +08:00
|
|
|
app.timer.cb(0)
|
2023-02-22 22:05:08 +08:00
|
|
|
app.pageManager.enter(Page2())
|
2023-02-24 00:57:46 +08:00
|
|
|
app.timer.cb(0)
|
2023-02-22 22:05:08 +08:00
|
|
|
app.pageManager.back()
|
2023-02-24 00:57:46 +08:00
|
|
|
app.timer.cb(0)
|
|
|
|
|