改进
This commit is contained in:
@@ -19,22 +19,13 @@ class HeurAMSApp(App):
|
||||
"dashboard": DashboardScreen,
|
||||
"nucleon_creator": NucleonCreatorScreen,
|
||||
"precache_all": PrecachingScreen,
|
||||
"preparation": PreparationScreen, # type: ignore
|
||||
"memscreen": MemScreen, # type: ignore
|
||||
}
|
||||
|
||||
def compose(self) -> ComposeResult:
|
||||
yield Header(show_clock = True)
|
||||
|
||||
yield Footer(show_command_palette = True)
|
||||
|
||||
def on_mount(self) -> None:
|
||||
self.push_screen("dashboard")
|
||||
|
||||
def on_button_pressed(self, event: Button.Pressed) -> None:
|
||||
self.exit(event.button.id)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app = HeurAMSApp()
|
||||
app.run()
|
||||
app = HeurAMSApp()
|
||||
app.run()
|
||||
Reference in New Issue
Block a user