From d2a3d0538475a9ab2056a8792eee85fa26c1a070 Mon Sep 17 00:00:00 2001 From: shaoupipi Date: Sun, 14 Jan 2018 11:05:01 +0800 Subject: [PATCH] Update eventEngine.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 事件引擎测试函数也去掉qt4,采用qtpy --- vnpy/event/eventEngine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vnpy/event/eventEngine.py b/vnpy/event/eventEngine.py index fd0df469..5d259ee0 100644 --- a/vnpy/event/eventEngine.py +++ b/vnpy/event/eventEngine.py @@ -336,7 +336,7 @@ def test(): """测试函数""" import sys from datetime import datetime - from PyQt4.QtCore import QCoreApplication + from qtpy.QtCore import QCoreApplication def simpletest(event): print(u'处理每秒触发的计时器事件:{}'.format(str(datetime.now()))) @@ -353,4 +353,4 @@ def test(): # 直接运行脚本可以进行测试 if __name__ == '__main__': - test() \ No newline at end of file + test()