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()