parameters: (self)
return_statement: return widget
docstring: Return widget to read only numeric value of attribute
          This is effectively the parametrisation of the masked.NumCtrl widget.
docstring_summary: Return widget to read only numeric value of attribute
          This is effectively the parametrisation of the masked.NumCtrl widget.
docstring_tokens: Return widget to read only numeric value of attribute This is effectively the parametrisation of the masked . NumCtrl widget .
function: def get_valuewidget_read(self):
          """
          Return widget to read only numeric value of attribute
          This is effectively the parametrisation of the masked.NumCtrl widget.
          """
          # this is a list:
          values = self.get_value_obj()
          # print 'ChoiceWidgetContainer.get_valuewidget_read',value,type(value)
          # print '  choices',self._attrconf.choices
  
          # mal values in list with .choices dictionary
          if (len(values) > 0) & (type(self._attrconf.choices) in (OrderedDict, types.DictionaryType)):
              #value = self._attrconf.choices[value]
              values = []
              for val in self.get_value_obj():
                  if val in self._choicevalues:
                      values.append(self._choicenames[self._choicevalues.index(val)])
  
          # print '  value =',value
          widget = wx.TextCtrl(self.parent, -1, list_to_str(values, sep=self._attrconf.sep), style=wx.ALIGN_RIGHT)
          widget.Enable(False)
          return widget
function_tokens: def get_valuewidget_read ( self ) : # this is a list: values = self . get_value_obj ( ) # print 'ChoiceWidgetContainer.get_valuewidget_read',value,type(value) # print '  choices',self._attrconf.choices # mal values in list with .choices dictionary if ( len ( values ) > 0 ) & ( type ( self . _attrconf . choices ) in ( OrderedDict , types . DictionaryType ) ) : #value = self._attrconf.choices[value] values = [ ] for val in self . get_value_obj ( ) : if val in self . _choicevalues : values . append ( self . _choicenames [ self . _choicevalues . index ( val ) ] ) # print '  value =',value widget = wx . TextCtrl ( self . parent , - 1 , list_to_str ( values , sep = self . _attrconf . sep ) , style = wx . ALIGN_RIGHT ) widget . Enable ( False ) return widget