[Add]增加对pyqtSignal的版本兼容处理

This commit is contained in:
vn.py 2018-03-27 10:10:00 +08:00
parent 99e6c4d6fc
commit fe636ade04

View File

@ -7,6 +7,11 @@ from qtpy import QtWidgets, QtGui, QtCore
from vnpy.trader.vtGlobal import globalSetting from vnpy.trader.vtGlobal import globalSetting
from vnpy.trader.vtFunction import loadIconPath from vnpy.trader.vtFunction import loadIconPath
if not hasattr(QtCore, 'pyqtSignal'):
QtCore.pyqtSignal = QtCore.Signal
BASIC_FONT = None BASIC_FONT = None
try: try:
family = globalSetting['fontFamily'] family = globalSetting['fontFamily']