app.py 271 B

123456789101112131415161718
  1. from textual.app import App
  2. from themes.scr import Main
  3. class Themes(App):
  4. SCREENS = {
  5. 'main': Main,
  6. }
  7. def __init__(self, path):
  8. super().__init__()
  9. self.path = path
  10. def on_mount(self, event):
  11. self.push_screen('main')