Skip to content

Commit bf87552

Browse files
committed
Fixed Few Bugs In GUI
1 parent c166ad0 commit bf87552

File tree

1 file changed

+9
-27
lines changed

1 file changed

+9
-27
lines changed

main_gui.py

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,6 @@
146146

147147

148148

149-
150-
# root.geometry("400x600+850+50")
151-
152-
153-
154-
155-
156149
# setting switch function:
157150
def switch():
158151
global btnState
@@ -166,14 +159,14 @@ def switch():
166159
brandLabel.config(bg="gray17", fg="green")
167160
homeLabel.config(bg=color["orange"])
168161
topFrame.config(bg=color["orange"])
169-
root.config(bg="gray17")
162+
# root.config(bg="gray17")
170163

171164
# turning button OFF:
172165
btnState = False
173166
else:
174167
# make root dim:
175168
brandLabel.config(bg=color["nero"], fg="#5F5A33")
176-
homeLabel.config(bg=color["nero"])
169+
# homeLabel.config(bg=color["nero"])
177170
topFrame.config(bg=color["nero"])
178171
root.config(bg=color["nero"])
179172

@@ -185,17 +178,6 @@ def switch():
185178
# turing button ON:
186179
btnState = True
187180

188-
189-
# window in mainloop:
190-
# root.mainloop()
191-
192-
193-
194-
195-
196-
197-
198-
from tkinter import PhotoImage
199181
from tkinter import *
200182
root =Tk()
201183
root.geometry("1300x700")
@@ -227,18 +209,18 @@ def switch():
227209
# topFrame.pack(side="top", fill=X)
228210

229211
# 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)
231213
homeLabel.pack(side="right")
232214

233215
# Main label text:
234216
brandLabel = Label(root, text="", font="System 30", bg="gray17", fg="green")
235217
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")
242224
canvas1.create_window(100, 370, anchor="nw", window=b1)
243225
canvas1.create_window(100, 245, anchor="nw", window=b2)
244226
canvas1.create_window(700, 245, anchor="nw", window=b3)

0 commit comments

Comments
 (0)