Added the diary select screen

This commit is contained in:
Gustavo Henrique Santos Souza de Miranda
2025-06-08 22:50:26 -03:00
parent 03fb3b23c2
commit 58c7bfd8e9
8 changed files with 197 additions and 8 deletions
+12
View File
@@ -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())