-
Notifications
You must be signed in to change notification settings - Fork 7
/
login.py
31 lines (20 loc) · 932 Bytes
/
login.py
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
import customtkinter
customtkinter.set_appearance_mode("dark")
customtkinter.set_default_color_theme("dark-blue")
rt = customtkinter.CTk()
rt.geometry("600x350")
def login():
print("Test")
fr = customtkinter.CTkFrame(master=rt)
fr.pack(pady=40, padx=120, fill="both", expand=True)
label = customtkinter.CTkLabel(master=fr, width=120, height=32, text="Login System", text_font=("Roboto", 24))
label.pack(pady=12, padx=10)
entry1 = customtkinter.CTkEntry(master=fr, width=240, height=32, placeholder_text="Username")
entry1.pack(pady=12, padx=10)
entry2 = customtkinter.CTkEntry(master=fr, width=240, height=32, placeholder_text="Password", show="*")
entry2.pack(pady=12, padx=10)
button = customtkinter.CTkButton(master=fr, width=240, height=32, text="Login", command=login)
button.pack(pady=12, padx=10)
checkbox = customtkinter.CTkCheckBox(master=fr, text="Remember me")
checkbox.pack(pady=12, padx=10)
rt.mainloop()