[Add]增加对pyqtSignal的版本兼容处理
This commit is contained in:
parent
99e6c4d6fc
commit
fe636ade04
@ -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']
|
||||||
|
Loading…
Reference in New Issue
Block a user