-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMain.py
More file actions
44 lines (36 loc) · 1.23 KB
/
Main.py
File metadata and controls
44 lines (36 loc) · 1.23 KB
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
from vtk import *
from DemoChooser import DemoChooser
from MultipleSlices import MultipleSlices
from SingleSlice import SingleSlice
from MultiTouchTest import MultiTouchTest
if __name__ == '__main__':
gui = DemoChooser()
gui.Start()
nextDemo = gui.GetPickedDemo()
gui.Kill()
try:
while True:
if nextDemo == 0:
gui = DemoChooser()
gui.Start()
nextDemo = gui.GetPickedDemo()
gui.Kill()
elif nextDemo == 1:
singleSlice = SingleSlice()
singleSlice.Start()
singleSlice.Kill()
nextDemo = 0
elif nextDemo == 2:
multipleSlices = MultipleSlices()
multipleSlices.Start()
multipleSlices.Kill()
nextDemo = 0
elif nextDemo == 3:
multiTouchTest = MultiTouchTest()
multiTouchTest.Start()
multiTouchTest.Kill()
nextDemo = 0
else:
nextDemo = 0
except KeyboardInterrupt:
print "Program Terminating"