-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_toggle_switch.py
48 lines (44 loc) · 1.04 KB
/
test_toggle_switch.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
# from Heema import *
#
# class toggle_switch():
# def __init__(self,frame_name,state,bg="#202020",fg="white",activebackground="#202020"):
# self.state=state
# self.fg=fg
# self.bg=bg
# self.ac
# def toggle_switch_button(frame_name,text,command=do_nothing):
# l=Button(frame_name,font=('calibri',"11"),text=text,border=label_bd,bg=label_bg,fg=fg,command=command)
# def enter(e):
# #print("hovered")
# l.config(activebackground="#202020",bg="#202020",fg=fg,)#018574
# #7BD5F5
# #205565
#
# def leave(e):
# #print("left")
# l.config(bg="#202020",fg="#ffffff")
# l.bind("<Leave>",leave)
# l.bind("<Enter>",enter)
# return l
#
#
#
#
#
#
# # toggle_text = toggle_off_symbol if state == "on" else toggle_on_symbol
# # switch_button.config(text=toggle_text)
# # state = "off" if state == "on" else "on" # Toggle the state
# # switch_button.update()
#
#
# root=create_window()
#
#
#
#
# root.mainloop()
from Heema import *
root=create_window()
make_rounded(root)
root.mainloop()