From: asl Date: Mon, 23 Jan 2017 12:19:19 +0000 (+0300) Subject: porting interpolz gui X-Git-Tag: Salome_8_3_Hydro_2_0rc1~31^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4db0dd7226ab71781b17d7227217130bafada2d0;p=modules%2Fhydrosolver.git porting interpolz gui --- diff --git a/src/salome_hydro/interpolz_gui.py b/src/salome_hydro/interpolz_gui.py index 8672012..6fa168a 100644 --- a/src/salome_hydro/interpolz_gui.py +++ b/src/salome_hydro/interpolz_gui.py @@ -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()