]> SALOME platform Git repositories - modules/hydrosolver.git/commitdiff
Salome HOME
debug
authorPaul RASCLE <paul.rascle@edf.fr>
Tue, 7 Feb 2017 16:11:41 +0000 (17:11 +0100)
committerPaul RASCLE <paul.rascle@edf.fr>
Tue, 7 Feb 2017 16:11:41 +0000 (17:11 +0100)
src/salome_hydro/gui_utils.py
src/salome_hydro/pytel/gui.py

index 0879e58249f8fbc5a3430fc6fbce9d33bb8ba7da..84b16835d20ddb5458649e5be01e264711d4b78e 100644 (file)
@@ -40,11 +40,11 @@ class OverrideCursorCM:
   """
   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()
@@ -59,7 +59,7 @@ def get_and_check_selected_file_path():
   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):
index 91571a0d39c3e514d4b4f0470f903bd0d8ba962a..0e371c294d8742c745c5249ee283f7067c206a70 100755 (executable)
@@ -33,7 +33,7 @@ def create_case_pytel():
 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():