-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNoInternetERROR.py
More file actions
31 lines (29 loc) · 912 Bytes
/
NoInternetERROR.py
File metadata and controls
31 lines (29 loc) · 912 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
import time
import os
import speedtest
os.system('mode con: cols=33 lines=5')
print(' ')
print(' Niste Povezani s internetom ')
print(' Ne možemo pokrenuti program ')
print(' Povežite se s internetom... ')
time.sleep(5)
Prolaz=0
while Prolaz==0:
try:
speedtest = speedtest.Speedtest()
os.system('cls')
print(' ')
print(' Povezano... ')
print(' ')
print(' ')
time.sleep(2)
os.startfile('SpeedTest.py')
Prolaz=1
except:
os.system('cls')
print(' ')
print(' Povežite se s internetom... ')
print(' ')
print(' ')
time.sleep(5)
exit()