-
Notifications
You must be signed in to change notification settings - Fork 0
/
Windows Update.py
50 lines (36 loc) · 1.26 KB
/
Windows Update.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
from alive_progress import alive_bar
from time import sleep
import winsound
print("Hello.")
sleep(1)
look_for_updates = input("Type Update command to find update: ")
if look_for_updates == "update":
with alive_bar(100) as bar:
for i in range(100):
sleep(00.06)
bar()
update_windows = input("A new application update for Windows has been found. Would you like to download it? Yes/No: ")
for i in range(2):
if update_windows == "Yes":
print()
print("Please do not turn off the application or your computer. Updating..." )
with alive_bar(100) as bar:
for i in range(100):
sleep(1)
bar()
if update_windows == "No":
print("")
else:
while i in range(2):
with alive_bar(100) as bar:
for i in range(100):
sleep(1)
bar()
winsound.PlaySound("SystemQuestion", winsound.SND_ALIAS)
break
with alive_bar(100) as bar:
for i in range(100):
sleep(1)
bar()
winsound.PlaySound("SystemQuestion", winsound.SND_ALIAS)
break