Improved the timers menu with timer numbering
This commit is contained in:
parent
a4adaac9b4
commit
f0d6b49d6e
6
main.py
6
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()
|
||||
|
Loading…
Reference in New Issue
Block a user