def __init__ ( self, orb, poa, contID, containerName, instanceName,
interfaceName ):
SALOME_ComponentPy.SALOME_ComponentPy_i.__init__(self, orb, poa,
- contID, containerName, instanceName, interfaceName, 0)
+ contID, containerName, instanceName, interfaceName)
SALOME_DriverPy.SALOME_DriverPy_i.__init__(self, interfaceName)
sobj = get_and_check_selected_file_path()
ed.generate_study_script(sobj)
except SALOME.SALOME_Exception as exc:
- salome.sg.updateObjBrowser(0)
+ salome.sg.updateObjBrowser()
msg = str(QApplication.translate("generate_telemac2d_python",
"An error happened while trying to generate telemac2d Python script:"))
msg += "\n" + exc.details.text
sobj = get_and_check_selected_file_path()
ed.generate_study_yacs(sobj)
except SALOME.SALOME_Exception as exc:
- salome.sg.updateObjBrowser(0)
+ salome.sg.updateObjBrowser()
msg = str(QApplication.translate("generate_telemac2d_yacs",
"An error happened while trying to generate telemac2d Python script:"))
msg += "\n" + exc.details.text
QMessageBox.warning(self, self.tr("Warning"),
self.tr("%s. Reason:\n%s\n\nSee logs for "
"more details." % (msgError, exc)))
- salome.sg.updateObjBrowser(0)
+ salome.sg.updateObjBrowser()
def closeEvent(self, event):
while self.codedir in sys.path:
logger.exception(msgError)
QMessageBox.warning(self, self.tr("Warning"),
self.tr("%s. Reason:\n%s\n\nSee logs for more details." % (msgError, exc)))
- salome.sg.updateObjBrowser(0)
+ salome.sg.updateObjBrowser()
def closeEvent(self, event):
while self.codedir in sys.path:
QMessageBox.warning(self, self.tr("Warning"),
self.tr("%s. Reason:\n%s\n\nSee logs for "
"more details." % (msgError, exc)))
- salome.sg.updateObjBrowser(0)
+ salome.sg.updateObjBrowser()
def closeEvent(self, event):
while self.codedir in sys.path: