parameters: (self, val)
docstring: Sets value for valuewidget.
          Depends on attribute type and hence widgettype.
          To be overwritten.
docstring_summary: Sets value for valuewidget.
          Depends on attribute type and hence widgettype.
          To be overwritten.
docstring_tokens: Sets value for valuewidget . Depends on attribute type and hence widgettype . To be overwritten .
function: def set_widgetvalue(self, val):
          """
          Sets value for valuewidget.
          Depends on attribute type and hence widgettype.
          To be overwritten.
          """
          # print 'set_widgetvalue',self._attrconf.attrname, val,self._choicevalues
          # if self._choicevalues.count(val)>0:
          #ind = self._choicevalues.index(val)
          # self.valuewidget.SetSelection(ind)
          # else:
          # self.valuewidget.SetValue(val)
  
          try:
              #ind = self._choicenames.index(value)
              ind = self._choicevalues.index(val)
          except:
              print 'WARNING in ChoiceWidgetContainer.set_widgetvalue: %s with value "%s" not in choice list' % (self._attrconf.attrname, val)
              return
          # print '  ind',ind,self.valuewidget
          if self._attrconf.is_writable():
              self.valuewidget.SetSelection(ind)
          else:
              self.valuewidget.SetValue(self._choicenames[ind])
function_tokens: def set_widgetvalue ( self , val ) : # print 'set_widgetvalue',self._attrconf.attrname, val,self._choicevalues # if self._choicevalues.count(val)>0: #ind = self._choicevalues.index(val) # self.valuewidget.SetSelection(ind) # else: # self.valuewidget.SetValue(val) try : #ind = self._choicenames.index(value) ind = self . _choicevalues . index ( val ) except : print 'WARNING in ChoiceWidgetContainer.set_widgetvalue: %s with value "%s" not in choice list' % ( self . _attrconf . attrname , val ) return # print '  ind',ind,self.valuewidget if self . _attrconf . is_writable ( ) : self . valuewidget . SetSelection ( ind ) else : self . valuewidget . SetValue ( self . _choicenames [ ind ] )