parameters: (self)
return_statement: return widget
docstring: Return widget to edit numeric value of attribute
docstring_summary: Return widget to edit numeric value of attribute
docstring_tokens: Return widget to edit numeric value of attribute
function: def get_valuewidget_write(self):
          """
          Return widget to edit numeric value of attribute
          """
  
          value = self.get_value_obj()
          # print 'ColorWidgetContainer.get_valuewidget_write',self._attrconf.attrname,value,type(value)
  
          #widget =  wx.TextCtrl( self.parent, -1, str(value),style= wx.ALIGN_RIGHT)
          cint = np.array(np.array(value)*255, np.int32)
          # wx.Colour(cint[0],cint[1],cint[2],cint[3])
          widget = coloursel.ColourSelect(
              self.parent, -1, "", wx.Colour(cint[0], cint[1], cint[2], cint[3]), size=wx.DefaultSize)
          # self.set_textevents(widget)
          # widget.Enable(True)
          if self.immediate_apply:
              widget.Bind(coloursel.EVT_COLOURSELECT, self.on_colorselect)
          return widget
function_tokens: def get_valuewidget_write ( self ) : value = self . get_value_obj ( ) # print 'ColorWidgetContainer.get_valuewidget_write',self._attrconf.attrname,value,type(value) #widget =  wx.TextCtrl( self.parent, -1, str(value),style= wx.ALIGN_RIGHT) cint = np . array ( np . array ( value ) * 255 , np . int32 ) # wx.Colour(cint[0],cint[1],cint[2],cint[3]) widget = coloursel . ColourSelect ( self . parent , - 1 , "" , wx . Colour ( cint [ 0 ] , cint [ 1 ] , cint [ 2 ] , cint [ 3 ] ) , size = wx . DefaultSize ) # self.set_textevents(widget) # widget.Enable(True) if self . immediate_apply : widget . Bind ( coloursel . EVT_COLOURSELECT , self . on_colorselect ) return widget