- change : vtServer.py 在不适用 PyQt4 时不再加载相关的包

This commit is contained in:
lamter 2017-04-26 22:26:12 +08:00
parent 2c5abc4d90
commit bad997ce9f
2 changed files with 6 additions and 6 deletions

View File

@ -6,9 +6,6 @@ from threading import Thread
from time import sleep
from collections import defaultdict
# 第三方模块
from PyQt4.QtCore import QTimer
# 自己开发的模块
from eventType import *
@ -63,6 +60,9 @@ class EventEngine(object):
self.__thread = Thread(target = self.__run)
# 计时器,用于触发计时器事件
# 第三方模块
from PyQt4.QtCore import QTimer
self.__timer = QTimer()
self.__timer.timeout.connect(self.__onTimer)

View File

@ -6,9 +6,6 @@ from threading import Thread
from time import sleep
from collections import defaultdict
# 第三方模块
from PyQt4.QtCore import QTimer
# 自己开发的模块
from eventType import *
@ -63,6 +60,9 @@ class EventEngine(object):
self.__thread = Thread(target = self.__run)
# 计时器,用于触发计时器事件
# 第三方模块
from PyQt4.QtCore import QTimer
self.__timer = QTimer()
self.__timer.timeout.connect(self.__onTimer)