self.Groups.setCellWidget( i, 1, cb )
def onApplyClose( self ):
- self.onApply()
- self.onClose()
+ if self.onApply():
+ self.onClose()
def onApply( self ):
path = str(self.OutputPath.text())
elif len(interp)==0:
msg = "Please choose interpolation method"
+ result = False
if len(msg)==0:
generate( path, calc_case, med_file, med_groups_regions, z_undef, interp )
msg = "InterpolZ script is successfully generated"
+ result = True
QtGui.QMessageBox.information( self, "", msg )
+ return result
def onClose( self ):
self.close()