"""
def __init__(self, cursor):
self.cursor = cursor
-
+
def __enter__(self):
#QtGui.QApplication.setOverrideCursor(self.cursor)
QApplication.setOverrideCursor(self.cursor)
-
+
def __exit__(self, exc_type, exc_value, traceback):
#QtGui.QApplication.restoreOverrideCursor()
QApplication.restoreOverrideCursor()
attribute contains a valid file path, and return this file path.
"""
ed = getStudyEditor()
- if len(salome.sg.getSelected()) == 0 : return None
+ if len(salome.sg.getAllSelected()) == 0 : return None
sobj = ed.study.FindObjectID(salome.sg.getSelected(0))
filepath = sobj.GetComment()
if not os.path.isfile(filepath):
def edit_selected_case_pytel():
file=get_and_check_selected_file_path()
if file == None :
- file, filt = QFileDialog.getOpenFileName(self, self.tr("Open Pytel file"), "", )
+ file, filt = QFileDialog.getOpenFileName(sgPyQt.getDesktop(), "Open Pytel file", "", )
EficasForPytelAppli(fichier=file)
def get_params_from_selected_case():