if __name__=='__main__':
- generate( "test_interpolz.py", "case_1", "mesh.med", {"group_1":"reg_1", "group_2":"reg_2"}, -9999, {"reg_1" : "0", "reg_2": "1"} )
+ generate( "test_interpolz.py", "case_1", "mesh.med", {"group_1":"reg_1", "group_2":"reg_2"}, -9999, {"reg_1" : 0, "reg_2": 1} )
icb.addItem( 'Interpolation at the nearest point' )
icb.addItem( 'Linear interpolation on a cloud triangulation' )
self.Groups.setCellWidget( i, 2, icb )
+ icb.currentIndexChanged.connect(self.onCBInterpChanged)
+
+ def onCBInterpChanged( self ):
+ ind_set = set()
+ for i in range( 0, self.Groups.rowCount() ):
+ ind_set.add( self.Groups.cellWidget( i, 2 ).currentIndex() )
+ if len(ind_set) == 2:
+ self.InterpMethod.setStyleSheet("QComboBox { background-color: grey; }")
+ elif len(ind_set) == 1:
+ self.InterpMethod.setStyleSheet("")
def onInterpChanged( self ):
n = self.Groups.rowCount()