新版本pyqt没有pyqtSignal方法,统一使用Signal

This commit is contained in:
lxxia@googing.com.cn 2017-08-02 15:31:43 +08:00
parent 5797487081
commit 6eaee48e7f

View File

@ -72,7 +72,7 @@ class StPosMonitor(BasicMonitor):
######################################################################## ########################################################################
class StLogMonitor(QtWidgets.QTextEdit): class StLogMonitor(QtWidgets.QTextEdit):
"""价差日志监控""" """价差日志监控"""
signal = QtCore.pyqtSignal(type(Event())) signal = QtCore.Signal(type(Event()))
#---------------------------------------------------------------------- #----------------------------------------------------------------------
def __init__(self, mainEngine, eventEngine, parent=None): def __init__(self, mainEngine, eventEngine, parent=None):
@ -300,7 +300,7 @@ class StModeComboBox(QtWidgets.QComboBox):
######################################################################## ########################################################################
class StActiveButton(QtWidgets.QPushButton): class StActiveButton(QtWidgets.QPushButton):
"""""" """"""
signalActive = QtCore.pyqtSignal(bool) signalActive = QtCore.Signal(bool)
#---------------------------------------------------------------------- #----------------------------------------------------------------------
def __init__(self, algoEngine, spreadName, parent=None): def __init__(self, algoEngine, spreadName, parent=None):