# connect selection
selection = __study_data_map__[ studyId ][ "selection" ]
selection.ClearIObjects()
- Connect( selection, "currentSelectionChanged()", selectionChanged )
+ selection.currentSelectionChanged.connect( selectionChanged )
global myRunDlg
if myRunDlg:
myRunDlg.close()
studyId = myStudy._get_StudyId()
selection = __study_data_map__[ studyId ][ "selection" ]
selection.ClearIObjects()
- Disconnect( selection, "currentSelectionChanged()", selectionChanged )
+ selection.currentSelectionChanged.disconnect( selectionChanged )
global myRunDlg
if myRunDlg:
myRunDlg.close()
selection = __study_data_map__[ myStudy._get_StudyId() ][ "selection" ]
if not self.allCheck.isChecked():
- Connect( selection, "currentSelectionChanged()", self, "selectionChanged()" )
+ selection.currentSelectionChanged.connect(self.selectionChanged)
else:
- Disconnect( selection, "currentSelectionChanged()", self, "selectionChanged()" )
+ selection.currentSelectionChanged.connect(self.selectionChanged)
pass
def selectionChanged(self):