-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDiscordLinuxUpdateUI.py
More file actions
52 lines (42 loc) · 917 Bytes
/
DiscordLinuxUpdateUI.py
File metadata and controls
52 lines (42 loc) · 917 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
41
42
43
44
45
46
47
48
49
50
51
52
import tkinter as tk
import DLU
bgcolor = "#2B2D31"
btbgcolor = "#303446"
window = tk.Tk()
window.title("Discord Update")
window.geometry("300x100")
window.resizable(False, False)
window["background"] = "#2B2D31"
# window.attributes("-topmost", 1)
def update():
statusLabel["text"] = "Downloading..."
try:
DLU.downloadUpdateFile("stable")
statusLabel["text"] = "Sucess"
except:
statusLabel["text"] = "Ooops, something wrong."
headerLabel = tk.Label(
window,
text="Discord Updater",
font=("Noto Sans", 20),
fg="white",
background=bgcolor
)
headerLabel.pack()
statusLabel = tk.Label(
window,
text="",
fg="white",
background=bgcolor
)
statusLabel.pack()
button = tk.Button(
window,
text="Update",
background=btbgcolor,
fg="white",
command=update
)
button.configure(width="100")
button.pack()
window.mainloop()