From bad997ce9f9c89eba57defcef9b3369dc1970581 Mon Sep 17 00:00:00 2001 From: lamter Date: Wed, 26 Apr 2017 22:26:12 +0800 Subject: [PATCH] =?UTF-8?q?-=20change=20:=20vtServer.py=20=E5=9C=A8?= =?UTF-8?q?=E4=B8=8D=E9=80=82=E7=94=A8=20PyQt4=20=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E5=8A=A0=E8=BD=BD=E7=9B=B8=E5=85=B3=E7=9A=84=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vn.event/eventEngine.py | 6 +++--- vn.trader/eventEngine.py | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/vn.event/eventEngine.py b/vn.event/eventEngine.py index d892177f..c96dd71e 100644 --- a/vn.event/eventEngine.py +++ b/vn.event/eventEngine.py @@ -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) diff --git a/vn.trader/eventEngine.py b/vn.trader/eventEngine.py index d892177f..c96dd71e 100644 --- a/vn.trader/eventEngine.py +++ b/vn.trader/eventEngine.py @@ -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)