@@ -115,56 +115,6 @@ def exit_fun():
115
115
startb = Button (window , text = "START" , command = start_fun , font = ("Arial" , 25 ), bg = "light green" , fg = "blue" , borderwidth = 3 , relief = "raised" )
116
116
startb .place (x = 120 , y = 580 )
117
117
118
- # # for preview
119
- # preview_text = tk.Text(window,height = 15, width = 60, font=("Arial", 15),bg = "white", borderwidth=3, relief="solid")
120
- # preview_text.place(x = 150, y = 110)
121
- #
122
- # # creating the drop down menu button for selectng hour
123
- # first_var = tk.StringVar()
124
- # # as icon size are really small, we defined the following 7 sizes
125
- # first_choices = ["GMT", "UTC", "ECT", "EET", "ART", "EAT", "MET", "NET", "PLT", "IST", "BST", "VST", "CTT", "JST", "ACT", "AET","SST", "NST", "MIT", "HST", "AST", "PST", "PNT", "MST", "CST", "EST", "IET", "PRT", "CNT", "AGT", "BET", "CAT"]
126
- # first_choices.sort()
127
- # first_menu = OptionMenu(window, first_var, *first_choices)
128
- # first_menu.config(font=("Arial", 20), bg = "light green", fg = "blue", borderwidth=3)
129
- # first_menu["menu"].config(font=("Arial", 10), bg = "light yellow", fg = "blue")
130
- # first_menu.place(x=500, y=500)
131
- # first_var.set("GMT") # size 1 is selected as by default, and we can
132
- #
133
- # # preview1 label
134
- # top1 = Label(window, text = "PREVIEW AREA", font=("Arial", 40), fg="black", bg = "white") # same way bg
135
- # top1.place(x = 270, y = 180)
136
- #
137
- # # preview2 label
138
- # top2 = Label(window, text = "Chosen Color will be previed here...", font=("Arial", 25), fg="black", bg = "white") # same way bg
139
- # top2.place(x = 220, y = 280)
140
- #
141
- # # label for color name ---------------------------------------------------------------------------------
142
- # sel_label = tk.Label(text="COLOR NAME : ", font=("Arial", 35), fg="brown") # same way bg
143
- # sel_label.place(x=180, y=490)
144
- #
145
- # # creating the drop down menu button for selecting color name
146
- # name_var = tk.StringVar()
147
- # name_choices = name_sort
148
- # name_menu = OptionMenu(window, name_var, *name_choices)
149
- # name_menu.config(font=("Arial", 25), bg="light green", fg="blue", borderwidth=3)
150
- # name_menu["menu"].config(font=("Arial", 10), bg="light yellow", fg="blue")
151
- # name_menu.place(x=540, y=490)
152
- # name_var.set("antiquewhite") # size 1 is selected as by default, and we can
153
- #
154
- # # get button created
155
- # getb = Button(window, text="GET HEX CODE", command=code_details, font=("Arial", 20), bg="light green", fg="blue", borderwidth=3, relief="raised")
156
- # getb.place(x=100, y=600)
157
- #
158
- # # function for reseting
159
- # def reset_label():
160
- # name_var.set("antiquewhite")
161
- # preview_text.configure(bg="white")
162
- #
163
- #
164
- # # created reset button
165
- # resetb = Button(window, text="RESET", command=reset_label, font=("Arial", 20), bg="light green", fg="blue", borderwidth=3, relief="raised")
166
- # resetb.place(x=500, y=600)
167
-
168
118
# function for exiting
169
119
def exit_win ():
170
120
if mbox .askokcancel ("Exit" , "Do you want to exit?" ):
0 commit comments