From 4db0dd7226ab71781b17d7227217130bafada2d0 Mon Sep 17 00:00:00 2001 From: asl Date: Mon, 23 Jan 2017 15:19:19 +0300 Subject: [PATCH] porting interpolz gui --- src/salome_hydro/interpolz_gui.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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() -- 2.39.2