-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgui.py
42 lines (28 loc) · 1.19 KB
/
gui.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
import customtkinter, os
class run():
def start():
import main
main.start()
def udev():
import linuxudev
linuxudev()
def requirements():
os.system("pip install requests, zipfile")
os.system('cls' if os.name == 'nt' else 'clear')
root = customtkinter.CTk()
customtkinter.set_appearance_mode("system")
root.geometry("400x350")
root.title("ADB installer")
frame = customtkinter.CTkFrame(root)
frame.pack(pady=20, padx=60, fill="both", expand=True)
label = customtkinter.CTkLabel(frame, text="ADB Installer", font=("Segoe UI", 30, "bold"))
label.pack(pady=12, padx=10)
buttonInstall = customtkinter.CTkButton(frame, text="Start! (CMD)", command=run.start)
buttonInstall.pack(pady=12, padx=10)
buttonUdev = customtkinter.CTkButton(frame, text="Install Linux UDev!", command=run.udev)
buttonUdev.pack(pady=12, padx=10)
requiremensButton = customtkinter.CTkButton(frame, text="Install requirements!", command=run.requirements)
requiremensButton.pack(pady=12, padx=10)
bottomlabel = customtkinter.CTkLabel(frame, text="Thanks dumpydev for Unix script.\n GUI and Windows by matejmajny", font=("Segoe UI", 13))
bottomlabel.pack(pady=27, padx=10)
root.mainloop()