-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathaddUserWindow.py
More file actions
63 lines (42 loc) · 2.34 KB
/
addUserWindow.py
File metadata and controls
63 lines (42 loc) · 2.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
from tkinter import *
def on_enter(button):
button.config(background="#B0E2FF")
def on_leave(button):
button.config(background= "#87CEFF")
def add():
pass
def addUserWindow():
root = Toplevel()
root.title("Excrucia Inc.")
root.geometry("300x300")
root.minsize(500, 300)
root.maxsize(500, 300)
bg = PhotoImage(file = "inituserbackground.png")
canvas = Canvas(root, width = 500, height = 300)
canvas.pack(fill = "both", expand = True)
canvas.create_image(0, 0, image = bg, anchor = "nw")
text2 = Label(root, bg = "#87CEFA", fg = "#FFFFFF", text = "Username:", font = ("Arial Bold", 12))
canvas.create_window(80, 50, window = text2)
text3 = Label(root, bg = "#87CEFA", fg = "#FFFFFF", text = "Password:", font = ("Arial Bold", 12))
canvas.create_window(79, 100, window = text3)
text4 = Label(root, bg = "#87CEFA", fg = "#FFFFFF", text = "Confirm Password:", font = ("Arial Bold", 12))
canvas.create_window(112, 150, window = text4)
entry1 = Entry(root, bg = "#87CEFA", fg ="#000000", font = ("Arial Bold", 16), width = 18)
canvas.create_window(350, 50, window = entry1)
entry2 = Entry(root, bg = "#87CEFA", fg ="#000000", font = ("Arial Bold", 16), width = 18)
canvas.create_window(350, 100, window = entry2)
entry3 = Entry(root, bg = "#87CEFA", fg ="#000000", font = ("Arial Bold", 16), width = 18)
canvas.create_window(350, 150, window = entry3)
addB = Button(root, bd = 1, bg = "#87CEFF", fg = "#FFFFFF", activebackground = "#B0E2FF", activeforeground = "#FFFFFF", font = ("Arial Bold", 14), text ="Add",
width = 10, command = add)
addB.bind('<Enter>', lambda event: on_enter(addB))
addB.bind('<Leave>', lambda event: on_leave(addB))
canvas.create_window(150, 225, window = addB)
cancelB = Button(root, bd = 1, bg = "#87CEFF", fg = "#FFFFFF", activebackground = "#B0E2FF", activeforeground = "#FFFFFF", font = ("Arial Bold", 14), text ="Cancel",
width = 10, command = root.destroy)
cancelB.bind('<Enter>', lambda event: on_enter(cancelB))
cancelB.bind('<Leave>', lambda event: on_leave(cancelB))
canvas.create_window(350, 225, window = cancelB)
root.mainloop()
#if __name__ == "__main__":
# addUserWindow()