Changeset f2a2a82 in flowtimer
- Timestamp:
- 09/01/24 14:17:37 (9 months ago)
- Branches:
- guix
- Parents:
- df0449c
- Location:
- flowtimer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
flowtimer/Schedule.py
rdf0449c rf2a2a82 161 161 sum([block.ticks_left for block in self.upcoming_blocks()])) 162 162 163 def upcoming_block _titles(self):163 def upcoming_blocks_titles(self): 164 164 return [each.title for each in self.upcoming_blocks()] 165 165 -
flowtimer/configs/colors.json
rdf0449c rf2a2a82 2 2 "color_schemes": [ 3 3 { 4 "title": " Completed",4 "title": "Terminated", 5 5 "widget": "red", 6 6 "sequence_label": "red", … … 32 32 }, 33 33 { 34 "title": " Start",34 "title": "Initial", 35 35 "widget": "white", 36 36 "sequence_label": "green", -
flowtimer/main.py
rdf0449c rf2a2a82 125 125 if self.schedule.is_terminated(): 126 126 self.label_sequence.config(text="Time over !", font='times 22', 127 bg=self.colors_for_phase(" Completed").get('sequence_label'),127 bg=self.colors_for_phase("Terminated").get('sequence_label'), 128 128 fg="white") 129 129 self.label_duration.config(text="", 130 bg=self.colors_for_phase(" Completed").get('duration_label'),130 bg=self.colors_for_phase("Terminated").get('duration_label'), 131 131 fg="white") 132 132 self.progressbar.pack_forget() 133 self.center_frame.configure(bg=self.colors_for_phase(" Completed").get('center_frame'))133 self.center_frame.configure(bg=self.colors_for_phase("Terminated").get('center_frame')) 134 134 self.after_cancel(current_process) 135 135 self.skip_button['state'] = 'disabled' … … 144 144 self.progressbar.update() 145 145 colors = self.colors_for_phase(self.schedule.current_phase().title) 146 self.label_sequence.config(text=str(self.schedule.upcoming_block _titles()),146 self.label_sequence.config(text=str(self.schedule.upcoming_blocks_titles()), 147 147 font='times 22', bg=colors.get('sequence_label'), 148 148 fg="white")
Note:
See TracChangeset
for help on using the changeset viewer.