Changeset d9579ae in flowtimer
- Timestamp:
- 08/22/24 00:20:32 (9 months ago)
- Branches:
- guix
- Children:
- 577c8c6
- Parents:
- 59f6e9a
- Location:
- flowtimer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
flowtimer/RecurringPhaseSequence.py
r59f6e9a rd9579ae 45 45 @property 46 46 def title(self): 47 return self. _title47 return self.current_phase.title 48 48 49 49 def current_phase_number(self): … … 82 82 if not self.finished(): 83 83 result = self.current_phase.tick(ticks) 84 print("Current phase", self.current_phase)85 print("Passes left:", self.passes_left)86 84 if self.current_phase.finished(): 87 85 if self.upcoming_phases_in_pass(): … … 89 87 self.current_phase = self.upcoming_phases_in_pass()[0] 90 88 self.current_phase.start() 91 print("New phase:", self.current_phase)92 89 self.tick(abs(result)) 93 90 return True -
flowtimer/main.py
r59f6e9a rd9579ae 127 127 self.label_config_text.config(text=(self.schedule.current_phase.current_phase_number()+1, 128 128 "/", self.schedule.current_phase.current_phase_number()), 129 fg='blue', font="Times 48")129 fg='blue', font="Times 48") 130 130 131 131 else: … … 170 170 171 171 def random_color(self, widget): 172 if self.schedule.current_phase.title == "B-Phase": 172 # FIXME: Do not hardcode this 173 print(self.schedule.current_phase.title) 174 if self.schedule.current_phase.title == "Huddle": 173 175 widget.configure(bg="blue") 174 176 self.label_sequence.config(text=("\n" + "Besprechung")) 175 177 self.center_frame.configure(bg="blue") 176 if self.schedule.current_phase.title == " I-Phase":178 if self.schedule.current_phase.title == "Tasking": 177 179 widget.configure(bg="green") 178 180 self.label_sequence.config(text=("\n" + "Intensivphase")) 179 181 self.center_frame.configure(bg="green") 180 if self.schedule.current_phase.title == " S-Phase":182 if self.schedule.current_phase.title == "Work": 181 183 widget.configure(bg="gold") 182 184 self.label_sequence.config(text=("\n" + "Synchronisation"))
Note:
See TracChangeset
for help on using the changeset viewer.