-
Notifications
You must be signed in to change notification settings - Fork 6
/
run.py
43 lines (31 loc) · 1.14 KB
/
run.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
# -*- coding: utf-8 -*-
import os
import sys
#change working directory to pandaVis folder
abspath = os.path.abspath(__file__)
workDir = os.path.dirname(abspath)
workDir = os.path.join(workDir,'PandaVis')
os.chdir(workDir)
sys.path.append(os.getcwd())
from entryWindow import cEntryWindow
from Explorer3D import cExplorer3D
from dashVis.dashVis import cDashVis
import threading
if __name__ == "__main__":
entryWin = cEntryWindow()
entryWin.Show()
if entryWin.command == 'terminate':
print("App terminated")
if entryWin.command == '-runBoth-':
print("RUN DASH in thread")
dashVis = cDashVis()
dashThread = threading.Thread(target=dashVis.run,args=(entryWin.databaseFilePath, entryWin.dashLayout), daemon=True)
dashThread.start()
if entryWin.command == '-runDash-':
print("RUN DASH")
dashVis = cDashVis()
dashVis.run(entryWin.databaseFilePath, entryWin.dashLayout)
if entryWin.command == '-run3Dexplorer-' or entryWin.command == '-runBoth-':
print("RUN 3D explorer")
app = cExplorer3D(entryWin.databaseFilePath)
app.run()