]> SALOME platform Git repositories - modules/hydrosolver.git/commitdiff
Salome HOME
fix dialogues assignStrickler et generate Interpolz
authorPaul RASCLE <paul.rascle@edf.fr>
Fri, 8 Nov 2019 09:12:40 +0000 (10:12 +0100)
committerPaul RASCLE <paul.rascle@edf.fr>
Fri, 8 Nov 2019 09:12:40 +0000 (10:12 +0100)
src/salome_hydro/assignStrickler_gui.py
src/salome_hydro/interpolz_gui.py

index 82a31e2b49f61c6caf5af24df3857f10703d7f29..dd4f0931641859d8542091c8108e5774203a5279 100644 (file)
@@ -60,9 +60,11 @@ class assignStricklerDlg( QDialog ):
     def onOutputFile( self ):
       caption = "Python file"
       mask = "*.py"
-      fname, filt = QFileDialog.getSaveFileName( self, caption, ".", mask )
+      theDir="."
+      fname, filt = QFileDialog.getSaveFileName( self, caption, theDir, mask )
+      #print("fname: %s"%fname)
       if fname!=None and fname!="":
-        if string.split(fname, '.')[-1] != 'py':
+        if fname.split('.')[-1] != 'py':
           fname += '.py'
         self.OutputPath.setText( fname )
 
index 742b2918790350a5aa70cf0558c03875cfded665..a1021c68ac44959f5ad98b58afe49749aad3eb9f 100644 (file)
@@ -137,7 +137,7 @@ class InterpolzDlg( QDialog ):
       mask = "*.py"
       fname, filt = QFileDialog.getSaveFileName( self, caption, ".", mask )
       if fname!=None and fname!="":
-        if string.split(fname, '.')[-1] != 'py':
+        if fname.split('.')[-1] != 'py':
           fname += '.py'
         self.OutputPath.setText( fname )