From f0d6b49d6e84bb4097a0c269466e732da0a1db93 Mon Sep 17 00:00:00 2001 From: BlueFox Date: Sat, 16 Nov 2024 12:23:06 +0100 Subject: [PATCH] Improved the timers menu with timer numbering --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 727390b..ced8e45 100644 --- a/main.py +++ b/main.py @@ -72,9 +72,9 @@ def timer(): _timer -= (time_ns() - last_time_ns) / 1000**3 last_time_ns = time_ns() - timer_programs = [(f"{timer_splits[0]()[0]:02d}:{timer_splits[0]()[1]:02d}", lambda: run_timer(1, timer_values[0])), - (f"{timer_splits[1]()[0]:02d}:{timer_splits[1]()[1]:02d}", lambda: run_timer(2, timer_values[1])), - (f"{timer_splits[2]()[0]:02d}:{timer_splits[2]()[1]:02d}", lambda: run_timer(3, timer_values[2])), + timer_programs = [(f"T1 - {timer_splits[0]()[0]:02d}:{timer_splits[0]()[1]:02d}", lambda: run_timer(1, timer_values[0])), + (f"T2 - {timer_splits[1]()[0]:02d}:{timer_splits[1]()[1]:02d}", lambda: run_timer(2, timer_values[1])), + (f"T3 - {timer_splits[2]()[0]:02d}:{timer_splits[2]()[1]:02d}", lambda: run_timer(3, timer_values[2])), ("Exit", timer_menu.stop)] timer_menu.setup(timer_programs) # give it the callback list timer_menu.run()