mirror of
https://github.com/gmbrax/Pilgrim.git
synced 2026-11-10 02:30:18 +00:00
Added the edit_entry_screen.py and modified the mock entry_service_mock.py to be async and also add the screen change on diary_list_screen.py and added the rename_entry_modal.py and added all the necessary CSS on the pilgrim.css
This commit is contained in:
parent
981b38f994
commit
58807460d7
@@ -8,6 +8,7 @@ from textual.screen import Screen
|
||||
from pilgrim.service.servicemanager import ServiceManager
|
||||
from pilgrim.ui.screens.about_screen import AboutScreen
|
||||
from pilgrim.ui.screens.diary_list_screen import DiaryListScreen
|
||||
from pilgrim.ui.screens.edit_entry_screen import EditEntryScreen
|
||||
|
||||
CSS_FILE_PATH = Path(__file__).parent / "styles" / "pilgrim.css"
|
||||
|
||||
@@ -42,7 +43,12 @@ class UIApp(App):
|
||||
screen.dismiss
|
||||
)
|
||||
|
||||
|
||||
elif isinstance(screen, EditEntryScreen):
|
||||
yield SystemCommand(
|
||||
"Back to Diary List",
|
||||
"Return to the diary list",
|
||||
screen.action_back_to_list
|
||||
)
|
||||
|
||||
# Always include quit command
|
||||
yield SystemCommand(
|
||||
|
||||
Reference in New Issue
Block a user