-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
40 lines (29 loc) · 996 Bytes
/
main.py
File metadata and controls
40 lines (29 loc) · 996 Bytes
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
import darkdetect
from window_main import *
import sv_ttk
if __name__ == "__main__":
Ventana = VentanaPrincipal()
ntkutils.placeappincenter(Ventana)
if darkdetect.theme() == "Dark":
sv_ttk.set_theme("dark")
ntkutils.dark_title_bar(Ventana)
ntkutils.blur_window_background(Ventana)
else:
sv_ttk.set_theme("light")
ntkutils.blur_window_background(Ventana)
Ventana.focus()
Ventana.init_menubar()
Ventana.init_buttons()
"""# Makes the window topmost
Ventana.wm_attributes('-topmost', True)
# Makes the window ubication center, n, ne, nw, etc
Ventana.anchor("center")
# Makes the icon of the window
Ventana.wm_iconbitmap("error")
# Makes the window transparent
Ventana.wm_attributes('-alpha', 0.9)
# Disable the window
Ventana.wm_attributes('-disabled', True)
# Set the geometry of the window
Ventana.wm_geometry('700x350')"""
Ventana.mainloop()