@@ -13,7 +13,7 @@ def create_task(self, index):
1313 self .frame .grid_propagate (False )
1414
1515 def title_text (title : str ) -> str :
16- max_letters = 20
16+ max_letters = 50
1717
1818 display_title = title
1919
@@ -27,16 +27,16 @@ def title_text(title: str) -> str:
2727 title .grid (row = 0 , column = 0 , padx = widget_padding_x )
2828 date = ctk .CTkLabel (self .frame , text = str (self .data_manager .worksheet ["N" + str (index )].value ), font = (font_family , font_size * 1.25 ),
2929 text_color = (light_font_color , font_color ), anchor = "center" , height = button_height + frame_padding * 2 )
30- date .grid ( row = 0 , column = 1 , padx = widget_padding_x )
30+ date .place ( anchor = "center" , relx = 0.75 , rely = 0.5 )
3131
3232 button_frame = ctk .CTkFrame (self .frame , fg_color = "transparent" )
33- button_frame .place (anchor = "center" , rely = 0.5 , relx = 0.825 )
33+ button_frame .place (anchor = "center" , rely = 0.5 , relx = 0.925 )
3434
35- open_button = ctk .CTkButton (button_frame , text = "Open " , height = button_height , fg_color = self .data_manager .color , hover_color = self .data_manager .highlight_color , font = (font_family , font_size ), text_color = button_font_color ,
35+ open_button = ctk .CTkButton (button_frame , image = self . app . open_icon , text = "" , height = button_height , fg_color = self .data_manager .color , hover_color = self .data_manager .highlight_color , font = (font_family , font_size ), text_color = button_font_color , width = button_height ,
3636 command = lambda : self ._open_notes_text (str (self .data_manager .worksheet ["N" + str (index )].value ), str (self .data_manager .worksheet ["O" + str (index )].value ), str (self .data_manager .worksheet ["P" + str (index )].value ), index ))
3737 open_button .grid (row = 0 , column = 0 , padx = widget_padding_x )
38- delete_button = ctk .CTkButton (button_frame , text = "Delete " , height = button_height , fg_color = self .data_manager .color , hover_color = self .data_manager .highlight_color , font = (font_family , font_size ), text_color = button_font_color ,
39- command = lambda : self .delete_task (index ))
38+ delete_button = ctk .CTkButton (button_frame , image = self . app . delete_icon , text = "" , height = button_height , fg_color = self .data_manager .color , hover_color = self .data_manager .highlight_color , font = (font_family , font_size ), text_color = button_font_color ,
39+ command = lambda : self .delete_task (index ), width = button_height )
4040 delete_button .grid (row = 0 , column = 1 )
4141
4242
@@ -65,18 +65,18 @@ def _open_notes_text(self, date, title, text, index):
6565 #date_label.grid(row=0, column=0, padx=widget_padding_x, pady=widget_padding_y)
6666
6767 button_frame = ctk .CTkFrame (header_frame , fg_color = "transparent" )
68- button_frame .place (anchor = "center" , rely = 0.5 , relx = 0.85 )
68+ button_frame .place (anchor = "center" , rely = 0.5 , relx = 0.95 )
6969
7070 textbox = ctk .CTkTextbox (frame , font = (font_family , font_size ), text_color = (light_font_color , font_color ), fg_color = "transparent" , width = WIDTH - frame_padding * 2 , height = HEIGHT + frame_padding * 2 - 60 )
7171 textbox .grid (row = 1 , column = 0 )
7272 textbox .insert ("0.0" , text )
7373 textbox .configure (state = "disabled" )
7474
75- edit_button = ctk .CTkButton (button_frame , height = button_height , text = "Edit " , fg_color = self .data_manager .color ,
75+ edit_button = ctk .CTkButton (button_frame , height = button_height , image = self . app . edit_icon , text = "" , fg_color = self .data_manager .color , width = button_height ,
7676 hover_color = self .data_manager .highlight_color , font = (font_family , font_size ), text_color = button_font_color , command = lambda : self .edit_note (index , textbox , edit_button , frame ))
7777 edit_button .grid (row = 0 , column = 1 )
78- exit_button = ctk .CTkButton (button_frame , height = button_height , text = "Exit " , fg_color = self .data_manager .color , command = lambda : self ._exit_note (frame ),
79- hover_color = self .data_manager .highlight_color , font = (font_family , font_size ), text_color = button_font_color )
78+ exit_button = ctk .CTkButton (button_frame , height = button_height , image = self . app . back_icon , text = "" , fg_color = self .data_manager .color , command = lambda : self ._exit_note (frame ),
79+ hover_color = self .data_manager .highlight_color , font = (font_family , font_size ), text_color = button_font_color , width = button_height )
8080 exit_button .grid (row = 0 , column = 2 , padx = widget_padding_x , pady = widget_padding_y )
8181
8282
@@ -92,7 +92,7 @@ def save_note(index, frame):
9292 self .data_manager .workbook .save (self .app .data_file )
9393
9494 textbox .configure (state = "normal" , fg_color = (light_frame_color , frame_color ))
95- edit_button .configure (text = "Save " , command = lambda : save_note (index , frame ))
95+ edit_button .configure (text = "" , image = self . app . save_icon , command = lambda : save_note (index , frame ), width = button_height )
9696
9797
9898 def clear_notes (self ):
0 commit comments