]> SALOME platform Git repositories - samples/atomgen.git/commitdiff
Salome HOME
PyQt4/PyQt5 support: use new PyQt signals/slots approach, which has been introduced... V8_0_0_BR V8_0_0 V8_0_0rc1 V8_0_0rc2
authorrnv <rnv@opencascade.com>
Wed, 27 Jan 2016 15:43:04 +0000 (18:43 +0300)
committerrnv <rnv@opencascade.com>
Wed, 27 Jan 2016 15:43:04 +0000 (18:43 +0300)
src/ATOMGENGUI/ATOMGENGUI.py

index c53953b3c668b93126556c2e888f2b6446bcad3e..c464523038f7ab0fa776b47a4d74a82fb9f23493 100644 (file)
@@ -197,7 +197,7 @@ def activate():
     # connect selection
     selection = __study_data_map__[ studyId ][ "selection" ]
     selection.ClearIObjects()
-    Connect( selection, "currentSelectionChanged()", selectionChanged ) 
+    selection.currentSelectionChanged.connect( selectionChanged )
     global myRunDlg
     if myRunDlg:
         myRunDlg.close()
@@ -214,7 +214,7 @@ def deactivate():
     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()
@@ -304,9 +304,9 @@ class RunDlg(QDialog, Ui_RunDlg):
 
         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):