-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
31 lines (20 loc) · 673 Bytes
/
main.py
File metadata and controls
31 lines (20 loc) · 673 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
from modules.classSerial import scanPorts
from modules.classSerial import *
from modules.classTkinter import *
from modules.classTime import *
serialConnection = None
runningProgram = True
def stopProgram():
global runningProgram ; runningProgram = False
if serialConnection:
uartInterface.close()
exit() #Remove when finished
graphicUserInterface.destroyWindow()
uartInterface = serialInterface(None,None)
graphicUserInterface = GraphicUITrafficLight()
graphicUserInterface.exitProtocol(stopProgram)
while runningProgram:
t.sleep(0.001)
graphicUserInterface.refreshScreen(currentDate())
if serialConnection:
pass