@@ -37,6 +37,7 @@ def isfloat(self):
3737def instructions ():
3838 instructions_file = open ("instructions.txt" )
3939 instructions = tk .Tk ()
40+ instructions .title ("PCC Instructions" )
4041 def exit_instructions ():
4142 instructions .destroy ()
4243 instruction_lbl = tk .Label (
@@ -69,6 +70,7 @@ def exit_not_appended():
6970
7071 else :
7172 not_appended = tk .Tk ()
73+ not_appended .title ("Warning" )
7274 not_appended_label = tk .Label (
7375 master = not_appended ,
7476 text = f"Values not added to register\n because \" { percentage_entry .get ()} \" is not a\n valid decimal number.\n Press any key to exit this\n warning menu."
@@ -83,6 +85,7 @@ def show_register():
8385 copy_pie_items_percentage = pie_items_percentage
8486 copy_explode = explode
8587 register_window = tk .Tk ()
88+ register_window .title ("PCC Register" )
8689
8790 def exit_register ():
8891 register_window .destroy ()
@@ -146,6 +149,7 @@ def cancel_exit():
146149 exit_window .destroy ()
147150
148151 exit_window = tk .Tk ()
152+ exit_window .title ("Exit?" )
149153 exit_warning_lbl = tk .Label (master = exit_window , text = "Do you really want to exit?\n All registered values will be lost" )
150154 exit_yes_btn = tk .Button (master = exit_window , text = "Yes" , command = finalise_exit )
151155 exit_no_btn = tk .Button (master = exit_window , text = "No" , command = cancel_exit )
@@ -156,6 +160,7 @@ def cancel_exit():
156160
157161def clear ():
158162 clear_warning = tk .Tk ()
163+ clear_warning .title ("Clear Register?" )
159164
160165 def finalise_clear ():
161166 len_pie_items = len (pie_items )
@@ -242,4 +247,6 @@ def back_to_pcc():
242247make_chart_btn .grid (row = 7 , column = 1 , columnspan = 2 , sticky = "WE" , padx = 1 , pady = 1 )
243248instructions_btn .grid (row = 6 , column = 1 , columnspan = 2 , sticky = "WE" , padx = 1 , pady = 1 )
244249
250+ window .title ("Pie Chart Creator" )
251+
245252window .mainloop ()
0 commit comments