]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Minor correction: call protocol of Python callbacks has been changed V9_2_0b1
authorvsr <vsr@opencascade.com>
Tue, 6 Nov 2018 07:38:24 +0000 (10:38 +0300)
committervsr <vsr@opencascade.com>
Tue, 6 Nov 2018 07:38:24 +0000 (10:38 +0300)
src/SALOME_PYQT/SALOME_PYQT_GUILight/SALOME_PYQT_PyModule.cxx

index 13a50e0240bd89f650e36ad980196c928266975c..11921f0dc865e2212275acf1b72e3db961fd4c46 100644 (file)
@@ -2129,7 +2129,7 @@ void PyModuleHelper::internalClosedStudy( SUIT_Study* theStudy )
   }
   // then call Python module's deactivate() method
   if ( PyObject_HasAttrString( myPyModule , (char*)"closeStudy" ) ) {
-    PyObjWrapper res( PyObject_CallMethod( myPyModule, (char*)"closeStudy", (char*)"i" ) );
+    PyObjWrapper res( PyObject_CallMethod( myPyModule, (char*)"closeStudy", (char*)"" ) );
     if( !res ) {
       PyErr_Print();
     }
@@ -2209,7 +2209,7 @@ void PyModuleHelper::internalStudyChanged( SUIT_Study* study )
 
   // call Python module's activeStudyChanged() method
   if ( PyObject_HasAttrString( myPyModule, (char*)"activeStudyChanged" ) ) {
-    PyObjWrapper res( PyObject_CallMethod( myPyModule, (char*)"activeStudyChanged", (char*)"i" ) );
+    PyObjWrapper res( PyObject_CallMethod( myPyModule, (char*)"activeStudyChanged", (char*)"" ) );
     if( !res ) {
       PyErr_Print();
     }