feat: added swich for timers_screen; refactor: commented out the non-working code and stubs

This commit is contained in:
Arduinum628
2025-11-30 15:34:49 +03:00
parent 9c3ec5c042
commit 7f0db608f6
3 changed files with 23 additions and 13 deletions

View File

@@ -9,6 +9,15 @@ class MenuApp:
menu: MDDropdownMenu = None
def switch_screen(self, item) -> None:
"""Переключает экран"""
screen_manager = self.root
match item.text:
case 'Таймеры':
screen_manager.current = 'timers_screen'
def open_menu(self, menu_button) -> None:
"""Открывает выпадающее меню"""
@@ -18,7 +27,7 @@ class MenuApp:
'Цвет темы': lambda: self.set_palette(),
'Стиль темы': lambda: self.switch_theme(),
'Тип схемы': lambda: self.set_scheme_type(),
'Новый таймер': None
# 'Новый таймер': None
}.items():
menu_items.append(
{