]> SALOME platform Git repositories - modules/hydrosolver.git/commitdiff
Salome HOME
porting interpolz gui
authorasl <asl@opencascade.com>
Mon, 23 Jan 2017 12:19:19 +0000 (15:19 +0300)
committerasl <asl@opencascade.com>
Mon, 23 Jan 2017 12:19:19 +0000 (15:19 +0300)
src/salome_hydro/interpolz_gui.py

index 86720120ffc0e067681f64d75bea55014de4a71c..6fa168a07471631a26071895d47eb3f29842b7f4 100644 (file)
@@ -74,18 +74,18 @@ class InterpolzDlg( QDialog ):
         p = hydro_solver_root
         uic.loadUi( p+'/interpolz.ui', self )
         self.setWindowTitle( 'Generate interpolz script' )
-        self.connect( SalomePyQt.SalomePyQt.getObjectBrowser(), SIGNAL("selectionChanged()"), self.onSelectionChanged )
-        self.connect( self.btnOutputPath, SIGNAL( "clicked()" ), self.onOutputFile )
-        self.connect( self.btnMEDFile, SIGNAL( "clicked()" ), self.onMEDFile )
-        self.connect( self.CalcCase, SIGNAL( "textChanged( const QString& )" ), self.onCalcCaseChanged )
-        self.connect( self.MEDFile, SIGNAL( "textChanged( const QString& )" ), self.onMEDChanged )
+        SalomePyQt.SalomePyQt.getObjectBrowser().selectionChanged.connect(self.onSelectionChanged)
+        self.btnOutputPath.clicked.connect(self.onOutputFile)
+        self.btnMEDFile.clicked.connect(self.onMEDFile)
+        self.CalcCase.textChanged.connect(self.onCalcCaseChanged)
+        self.MEDFile.textChanged.connect(self.onMEDChanged)
         self.UndefZ.setRange( -100000, 100000 )
         self.UndefZ.setValue( -9999 )
         self.InterpMethod.addItem( "Interpolation at the nearest point" )
-        self.connect( self.ApplyClose, SIGNAL( "clicked()" ), self.onApplyClose )
-        self.connect( self.Apply, SIGNAL( "clicked()" ), self.onApply )
-        self.connect( self.Close, SIGNAL( "clicked()" ), self.onClose )
-        self.connect( self.Help, SIGNAL( "clicked()" ), self.onHelp )
+        self.ApplyClose.clicked.connect(self.onApplyClose)
+        self.Apply.clicked.connect(self.onApply)
+        self.Close.clicked.connect(self.onClose)
+        self.Help.clicked.connect(self.onHelp)
          
     def onSelectionChanged( self ):
         calc_case_name = get_selected_calc_case()