@@ -103,34 +103,35 @@ def display_message(message, sender="user"):
103103
104104 app = ctk .CTk ()
105105 app .title ("CRAB" )
106- app .geometry ("400x500 " )
106+ app .geometry ("500x1000 " )
107107
108- model_frame = ctk .CTkFrame (app )
109- model_frame .pack (pady = 10 , padx = 10 , fill = "x" )
110-
111- model_label = ctk .CTkLabel (model_frame , text = "Model" )
112- model_label .pack (side = "left" , padx = (0 , 10 ))
108+ bold_font = ctk .CTkFont (family = "Crimson Pro" , size = 18 , weight = "bold" )
109+ normal_font = ctk .CTkFont (family = "Crimson Pro" , size = 18 , weight = "normal" )
113110
114111 model_dropdown = ctk .CTkOptionMenu (
115- model_frame ,
112+ app ,
116113 values = list (AVAILABLE_MODELS .keys ()),
114+ font = bold_font ,
115+ width = 200 ,
117116 )
118- model_dropdown .set (next ( iter ( AVAILABLE_MODELS )) )
119- model_dropdown .pack (side = "left" , fill = "x" , expand = True )
117+ model_dropdown .set (list ( AVAILABLE_MODELS . keys ())[ 0 ] )
118+ model_dropdown .pack (pady = 10 , padx = 10 , fill = "x" )
120119
121- chat_display_frame = ctk .CTkFrame (app , width = 380 , height = 380 )
122- chat_display_frame .pack (pady = 10 )
120+ chat_display_frame = ctk .CTkFrame (app , width = 480 , height = 880 )
121+ chat_display_frame .pack (pady = 10 , expand = True , fill = "y" )
123122 chat_display = ctk .CTkTextbox (
124- chat_display_frame , width = 380 , height = 380 , state = "disabled"
123+ chat_display_frame , width = 480 , height = 880 , state = "disabled" , font = normal_font
125124 )
126- chat_display .pack ()
125+ chat_display .pack (expand = True , fill = "both" )
127126
128127 input_frame = ctk .CTkFrame (app )
129- input_frame .pack (pady = 10 , padx = 10 , fill = "x" )
128+ input_frame .pack (pady = 10 , padx = 10 , fill = "x" , expand = True )
130129
131- input_entry = ctk .CTkEntry (input_frame )
130+ input_entry = ctk .CTkEntry (input_frame , font = normal_font )
132131 input_entry .pack (side = "left" , fill = "x" , expand = True , padx = (0 , 10 ))
133132
134- send_button = ctk .CTkButton (input_frame , text = "Send" , command = assign_task )
133+ send_button = ctk .CTkButton (
134+ input_frame , text = "Send" , font = bold_font , command = assign_task
135+ )
135136 send_button .pack (side = "right" )
136137 app .mainloop ()
0 commit comments