146
146
147
147
148
148
149
-
150
- # root.geometry("400x600+850+50")
151
-
152
-
153
-
154
-
155
-
156
149
# setting switch function:
157
150
def switch ():
158
151
global btnState
@@ -166,14 +159,14 @@ def switch():
166
159
brandLabel .config (bg = "gray17" , fg = "green" )
167
160
homeLabel .config (bg = color ["orange" ])
168
161
topFrame .config (bg = color ["orange" ])
169
- root .config (bg = "gray17" )
162
+ # root.config(bg="gray17")
170
163
171
164
# turning button OFF:
172
165
btnState = False
173
166
else :
174
167
# make root dim:
175
168
brandLabel .config (bg = color ["nero" ], fg = "#5F5A33" )
176
- homeLabel .config (bg = color ["nero" ])
169
+ # homeLabel.config(bg=color["nero"])
177
170
topFrame .config (bg = color ["nero" ])
178
171
root .config (bg = color ["nero" ])
179
172
@@ -185,17 +178,6 @@ def switch():
185
178
# turing button ON:
186
179
btnState = True
187
180
188
-
189
- # window in mainloop:
190
- # root.mainloop()
191
-
192
-
193
-
194
-
195
-
196
-
197
-
198
- from tkinter import PhotoImage
199
181
from tkinter import *
200
182
root = Tk ()
201
183
root .geometry ("1300x700" )
@@ -227,18 +209,18 @@ def switch():
227
209
# topFrame.pack(side="top", fill=X)
228
210
229
211
# Header label text:
230
- homeLabel = Label (topFrame , text = "Chat Box" , font = "Bahnschrift 65 " , bg = color ["orange" ], fg = "gray17" , height = 2 , padx = 20 )
212
+ homeLabel = Label (topFrame , text = "Chat Box" , font = "Bahnschrift 95 " , bg = color ["orange" ], fg = "gray17" , height = 2 , padx = 20 )
231
213
homeLabel .pack (side = "right" )
232
214
233
215
# Main label text:
234
216
brandLabel = Label (root , text = "" , font = "System 30" , bg = "gray17" , fg = "green" )
235
217
brandLabel .place (x = 100 , y = 250 )
236
- b1 = Button (root , text = ' New User' , font = ('Malgun Gothic Semilight' , 25 , "bold" ), width = 500 , height = 100 , bd = 5 , image = signup , compound = LEFT , anchor = "nw" )
237
- b2 = Button (root , text = ' Login' , font = ('Malgun Gothic Semilight' , 25 , "bold" ), width = 500 , height = 100 , bd = 5 , image = login , compound = LEFT , anchor = "nw" )
238
- b3 = Button (root , text = ' Login Super User' , font = ('Malgun Gothic Semilight' , 25 , "bold" ), width = 500 , height = 100 , bd = 5 , image = login , compound = LEFT , anchor = "nw" )
239
- b4 = Button (root , text = ' Delete account' , font = ('Malgun Gothic Semilight' , 25 , "bold" ), width = 500 , height = 100 , bd = 5 , image = delete , compound = LEFT , anchor = "nw" )
240
- b5 = Button (root , text = ' New Super User' , font = ('Malgun Gothic Semilight' , 25 , "bold" ), width = 500 , height = 100 , bd = 5 , image = signup , compound = LEFT , anchor = "nw" )
241
- b6 = Button (root , text = ' Find Friend By Id' , font = ('Malgun Gothic Semilight' , 25 , "bold" ), width = 500 , height = 100 , bd = 5 , image = find , compound = LEFT , anchor = "nw" )
218
+ b1 = Button (root , text = ' New User' , bg = color [ "nero" ], fg = color [ "orange" ], font = ('Malgun Gothic Semilight' , 25 , "bold" ), width = 500 , height = 100 , bd = 5 , image = signup , compound = LEFT , anchor = "nw" )
219
+ b2 = Button (root , text = ' Login' , bg = color [ "nero" ], fg = color [ "orange" ], font = ('Malgun Gothic Semilight' , 25 , "bold" ), width = 500 , height = 100 , bd = 5 , image = login , compound = LEFT , anchor = "nw" )
220
+ b3 = Button (root , text = ' Login Super User' , bg = color [ "nero" ], fg = color [ "orange" ], font = ('Malgun Gothic Semilight' , 25 , "bold" ), width = 500 , height = 100 , bd = 5 , image = login , compound = LEFT , anchor = "nw" )
221
+ b4 = Button (root , text = ' Delete account' , bg = color [ "nero" ], fg = color [ "orange" ], font = ('Malgun Gothic Semilight' , 25 , "bold" ), width = 500 , height = 100 , bd = 5 , image = delete , compound = LEFT , anchor = "nw" )
222
+ b5 = Button (root , text = ' New Super User' , bg = color [ "nero" ], fg = color [ "orange" ], font = ('Malgun Gothic Semilight' , 25 , "bold" ), width = 500 , height = 100 , bd = 5 , image = signup , compound = LEFT , anchor = "nw" )
223
+ b6 = Button (root , text = ' Find Friend By Id' , bg = color [ "nero" ], fg = color [ "orange" ], font = ('Malgun Gothic Semilight' , 25 , "bold" ), width = 500 , height = 100 , bd = 5 , image = find , compound = LEFT , anchor = "nw" )
242
224
canvas1 .create_window (100 , 370 , anchor = "nw" , window = b1 )
243
225
canvas1 .create_window (100 , 245 , anchor = "nw" , window = b2 )
244
226
canvas1 .create_window (700 , 245 , anchor = "nw" , window = b3 )
0 commit comments