Minor cleanup
This commit is contained in:
@@ -252,7 +252,7 @@ class ecmcMtnMainGui(QtWidgets.QDialog):
|
||||
self.checkBoxListAnalog[pv].setChecked(True)
|
||||
self.checkBoxListAnalog[pv].setStyleSheet("color: " + self.checkboxColor[pv])
|
||||
layoutVertPlotsSelectionUpper.addWidget(self.checkBoxListAnalog[pv])
|
||||
self.checkBoxListAnalog[pv].toggled.connect(self.stateChangedAnalog)
|
||||
self.checkBoxListAnalog[pv].toggled.connect(self.checkBoxStateChangedAnalog)
|
||||
|
||||
layoutVertPlotsSelectionUpper.addSpacing(200)
|
||||
|
||||
@@ -270,7 +270,7 @@ class ecmcMtnMainGui(QtWidgets.QDialog):
|
||||
self.checkBoxListBinary[pv].setChecked(True)
|
||||
self.checkBoxListBinary[pv].setStyleSheet("color: " + self.checkboxColor[pv])
|
||||
layoutVertPlotsSelectionLower.addWidget(self.checkBoxListBinary[pv])
|
||||
self.checkBoxListBinary[pv].toggled.connect(self.stateChangedBinary)
|
||||
self.checkBoxListBinary[pv].toggled.connect(self.checkBoxStateChangedBinary)
|
||||
|
||||
framePlotsSelectionLower.setLayout(layoutVertPlotsSelectionLower)
|
||||
|
||||
@@ -547,6 +547,16 @@ class ecmcMtnMainGui(QtWidgets.QDialog):
|
||||
self.data['EnaCmd-RB'] = value
|
||||
return
|
||||
|
||||
# State chenge for Analog checkboxes
|
||||
def checkBoxStateChangedAnalog(self, int):
|
||||
# refresh plots
|
||||
self.plotAnalog()
|
||||
|
||||
# State chenge for Binary checkboxes
|
||||
def checkBoxStateChangedBinary(self, int):
|
||||
# refresh plots
|
||||
self.plotBinary()
|
||||
|
||||
# def callbackFuncBuffIdAct(self, value):
|
||||
# if self.NMtn is None:
|
||||
# return
|
||||
@@ -695,15 +705,6 @@ class ecmcMtnMainGui(QtWidgets.QDialog):
|
||||
|
||||
return
|
||||
|
||||
def stateChangedAnalog(self, int):
|
||||
# refresh plots
|
||||
self.plotAnalog()
|
||||
|
||||
|
||||
def stateChangedBinary(self, int):
|
||||
# refresh plots
|
||||
self.plotBinary()
|
||||
|
||||
def plotAll(self):
|
||||
if self.MtnYDataValid and self.MtnXDataValid:
|
||||
self.plotAnalog()
|
||||
|
||||
Reference in New Issue
Block a user