-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_room_2.py
55 lines (33 loc) · 1.27 KB
/
test_room_2.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import customtkinter
import sys
customtkinter.set_appearance_mode("dark")
customtkinter.set_default_color_theme("dark-blue")
app = customtkinter.CTk()
app.geometry("350x350")
def login():
log = entre_1.get()
password = entre_2.get()
print(f"login test Bienvenue: {log}")
print("Password: ",password)
def exit():
print("Exit")
sys.exit()
def slider(value):
print(value)
frame = customtkinter.CTkFrame(master=app)
frame.pack(padx=60,pady=20,fill="both",expand=True)
label= customtkinter.CTkLabel(master=frame,text="Login System",font=("Roboto",24))
label.pack(padx=10,pady=12)
entre_1 = customtkinter.CTkEntry(master=frame,placeholder_text="Username")
entre_1.pack(padx=10,pady=12)
entre_2 = customtkinter.CTkEntry(master=frame,placeholder_text="Password",show="*")
entre_2.pack(padx=10,pady=12)
button_login = customtkinter.CTkButton(master=frame,text="Login",command=login)
button_login.pack(padx=10,pady=12)
button_exit = customtkinter.CTkButton(master=frame,text="Exit",command=exit)
button_exit.pack(padx=10,pady=12)
checkbox = customtkinter.CTkCheckBox(master=frame,text="Remenber me ")
checkbox.pack(padx=10,pady=12)
slider = customtkinter.CTkSlider(master=frame,from_=0, to=100, command= slider )
slider.pack(padx=10,pady=12)
app.mainloop()