mirror of
https://github.com/gmbrax/Pilgrim.git
synced 2026-11-10 01:20:16 +00:00
Added the diary select screen
This commit is contained in:
parent
03fb3b23c2
commit
58c7bfd8e9
@@ -1,9 +1,21 @@
|
||||
from pathlib import Path
|
||||
|
||||
from textual.app import App
|
||||
|
||||
from pilgrim.service.servicemanager import ServiceManager
|
||||
from pilgrim.ui.screens.diary_list_screen import DiaryListScreen
|
||||
|
||||
CSS_FILE_PATH = Path(__file__).parent / "styles" / "pilgrim.css"
|
||||
|
||||
|
||||
class UIApp(App):
|
||||
CSS_PATH = CSS_FILE_PATH
|
||||
|
||||
def __init__(self,service_manager: ServiceManager):
|
||||
super().__init__()
|
||||
self.service_manager = service_manager
|
||||
|
||||
|
||||
def on_mount(self) -> None:
|
||||
"""Chamado quando a app inicia. Carrega a tela principal."""
|
||||
self.push_screen(DiaryListScreen())
|
||||
|
||||
Reference in New Issue
Block a user