@@ -1051,7 +1051,7 @@ def __init__(self, parent, main_class):
1051
1051
self .button_open_events_table_preview .configure (command = self .events_table_preview )
1052
1052
1053
1053
# Graph types
1054
- (self .button_select_all , self .button_deselect_all , self .total_hours_per_year , self .total_hours_per_month , self .total_hours_by_summary , self .total_hours_by_summary2 , self .total_hours_per_year_by_summary , self .total_hours_per_month_by_summary ) = GUIWidgets .create_graph_types_scroll_frame (self , square_check_image , square_image )
1054
+ (self .button_select_all , self .button_deselect_all , self .total_hours_per_year , self .total_hours_per_month , self .total_hours_by_summary , self .total_hours_by_summary2 , self .total_hours_per_year_by_summary , self .total_hours_per_month_by_summary , self . total_hours_per_month_grouped_by_year ) = GUIWidgets .create_graph_types_scroll_frame (self , square_check_image , square_image )
1055
1055
self .button_select_all .configure (command = self .select_all )
1056
1056
self .button_deselect_all .configure (command = self .deselect_all )
1057
1057
@@ -1100,6 +1100,7 @@ def select_all(self):
1100
1100
self .total_hours_by_summary2 .select ()
1101
1101
self .total_hours_per_year_by_summary .select ()
1102
1102
self .total_hours_per_month_by_summary .select ()
1103
+ self .total_hours_per_month_grouped_by_year .select ()
1103
1104
Logger .write_log (f"all chart types selected" , Logger .LogType .INFO )
1104
1105
self ._common .write_log (self .log_box , f"all chart types selected" )
1105
1106
@@ -1110,6 +1111,7 @@ def deselect_all(self):
1110
1111
self .total_hours_by_summary2 .deselect ()
1111
1112
self .total_hours_per_year_by_summary .deselect ()
1112
1113
self .total_hours_per_month_by_summary .deselect ()
1114
+ self .total_hours_per_month_grouped_by_year .deselect ()
1113
1115
Logger .write_log (f"all chart types deselected" , Logger .LogType .INFO )
1114
1116
self ._common .write_log (self .log_box , f"all chart types deselected" )
1115
1117
@@ -1166,6 +1168,8 @@ def generate_graph(self):
1166
1168
self .generate_chart_with_timeout (Plotter .Plotter .chart_TotalHoursPerYearBySummary , data )
1167
1169
if self .total_hours_per_month_by_summary .get () == "on" :
1168
1170
self .generate_chart_with_timeout (Plotter .Plotter .chart_TotalHoursPerMonthBySummary , data )
1171
+ if self .total_hours_per_month_grouped_by_year .get () == "on" :
1172
+ self .generate_chart_with_timeout (Plotter .Plotter .chart_TotalHoursPerMonthGroupedByYear , data )
1169
1173
1170
1174
except FileNotFoundError as error :
1171
1175
Logger .write_log (f"Error, the file '{ self .file_path .get ()} ' doesn't exist" , Logger .LogType .ERROR , error )
0 commit comments