Add sessions

This commit is contained in:
2023-06-02 12:21:12 +02:00
parent e2546c7bfb
commit a149ab71bb
5 changed files with 30 additions and 5 deletions

View File

@@ -12,6 +12,7 @@ from src.window.session import SessionWindow
class App:
def __init__(self, root):
super().__init__()
self.list_in_session = None
self.custom = False
self.config = Config()
self.session = None
@@ -79,6 +80,7 @@ class App:
self.launch_button.config(state="disabled")
def set_timer_in_seconds(self, user_data):
self.custom = False
self.timer = user_data
for button in self.buttons:
if button['text'] == Util.format_seconds(self.timer):
@@ -90,3 +92,7 @@ class App:
def set_custom(self, list_in_session):
self.custom = True
self.list_in_session = list_in_session
self.check_lets_draw()
for button in self.buttons:
button.config(bg="gray85")
self.buttons[-1].config(bg="blue")