()
| 154 | |
| 155 | |
| 156 | def set_custom_durations(): |
| 157 | global custom_work_min, custom_break_min |
| 158 | try: |
| 159 | work_val = int(entry_work.get()) |
| 160 | break_val = int(entry_break.get()) |
| 161 | custom_work_min = work_val |
| 162 | custom_break_min = break_val |
| 163 | canvas.itemconfig(left_custom, text=f"{custom_work_min}m") |
| 164 | canvas.itemconfig(right_custom, text=f"{custom_break_min}m") |
| 165 | except ValueError: |
| 166 | pass |
| 167 | |
| 168 | |
| 169 | # ---------------------------- UI SETUP ------------------------------- # |