forked from xpclove/autofp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathautofp.py
34 lines (34 loc) · 783 Bytes
/
autofp.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
from uiset import Ui
from run import Run
import sys
import com
import params
import newversion_set
import thread
import time
import multiprocessing
import shautofp
import plot
from PyQt4 import QtCore, QtGui
def start_autofp():
app = QtGui.QApplication(sys.argv)
com.com_init("ui");
if (params.gettime() > 21160831 ):
print "find a new version , please download ... "
p=newversion_set.Ui_version()
p.show()
sys.exit(app.exec_())
r=Run()
window = Ui()
com.ui=window
window.run=r
window.show()
sys.exit(app.exec_())
def showmsg(msg):
window.showMsg(msg)
if __name__ =="__main__":
multiprocessing.freeze_support()
if len(sys.argv)>1:
shautofp.cmd_run(sys.argv, len(sys.argv))
sys.exit()
start_autofp()