- change : vtServer.py 在不适用 PyQt4 时不再加载相关的包
This commit is contained in:
parent
2c5abc4d90
commit
bad997ce9f
@ -6,9 +6,6 @@ from threading import Thread
|
|||||||
from time import sleep
|
from time import sleep
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
# 第三方模块
|
|
||||||
from PyQt4.QtCore import QTimer
|
|
||||||
|
|
||||||
# 自己开发的模块
|
# 自己开发的模块
|
||||||
from eventType import *
|
from eventType import *
|
||||||
|
|
||||||
@ -63,6 +60,9 @@ class EventEngine(object):
|
|||||||
self.__thread = Thread(target = self.__run)
|
self.__thread = Thread(target = self.__run)
|
||||||
|
|
||||||
# 计时器,用于触发计时器事件
|
# 计时器,用于触发计时器事件
|
||||||
|
# 第三方模块
|
||||||
|
from PyQt4.QtCore import QTimer
|
||||||
|
|
||||||
self.__timer = QTimer()
|
self.__timer = QTimer()
|
||||||
self.__timer.timeout.connect(self.__onTimer)
|
self.__timer.timeout.connect(self.__onTimer)
|
||||||
|
|
||||||
|
@ -6,9 +6,6 @@ from threading import Thread
|
|||||||
from time import sleep
|
from time import sleep
|
||||||
from collections import defaultdict
|
from collections import defaultdict
|
||||||
|
|
||||||
# 第三方模块
|
|
||||||
from PyQt4.QtCore import QTimer
|
|
||||||
|
|
||||||
# 自己开发的模块
|
# 自己开发的模块
|
||||||
from eventType import *
|
from eventType import *
|
||||||
|
|
||||||
@ -63,6 +60,9 @@ class EventEngine(object):
|
|||||||
self.__thread = Thread(target = self.__run)
|
self.__thread = Thread(target = self.__run)
|
||||||
|
|
||||||
# 计时器,用于触发计时器事件
|
# 计时器,用于触发计时器事件
|
||||||
|
# 第三方模块
|
||||||
|
from PyQt4.QtCore import QTimer
|
||||||
|
|
||||||
self.__timer = QTimer()
|
self.__timer = QTimer()
|
||||||
self.__timer.timeout.connect(self.__onTimer)
|
self.__timer.timeout.connect(self.__onTimer)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user