1 from DialogEdit import *
4 class EditRadiusDialog( DialogEdit ) :
6 def __init__( self, helpFile, controller, widgetDialogBox, model, oldRadius ) :
9 #Initializing parent widget
10 DialogEdit.__init__( self, helpFile, controller, widgetDialogBox )
13 self.entryRadius.setText( oldRadius )
16 def addSpecialWidgets( self ) :
17 floatValidator = QDoubleValidator( self )
19 lRadius = QLabel( "Radius", self )
20 self.v11.addWidget( lRadius )
21 self.entryRadius = QLineEdit( self )
22 self.entryRadius.setValidator( floatValidator )
23 self.v12.addWidget( self.entryRadius )
26 def execApply( self ) :
27 newRadius = self.newRadius
28 self.getController().editRadius( self._model, newRadius )
32 def retrieveUserEntries( self ) :
33 self.newRadius = str( self.entryRadius.text() )
36 def checkUserEntries( self ) :
37 if self.newRadius == "" :
38 self.errMessage = 'All attributes must be filled'