parameters: (self, evt)
docstring: Update the button and text control value
          when a choice is made in the colour dialog.
          @param evt: EVT_COLOURSELECT
docstring_summary: Update the button and text control value
          when a choice is made in the colour dialog.
          @param evt: EVT_COLOURSELECT
docstring_tokens: Update the button and text control value when a choice is made in the colour dialog . @param evt : EVT_COLOURSELECT
function: def OnColour(self, evt):
          """Update the button and text control value
          when a choice is made in the colour dialog.
          @param evt: EVT_COLOURSELECT
  
          """
          e_val = evt.GetValue()[0:3]
          red, green, blue = (hex(val)[2:].upper() for val in e_val)
          hex_str = u"#%s%s%s" % (red.zfill(2), green.zfill(2), blue.zfill(2))
          self._txt.SetValue(hex_str)
          self._cbtn.SetValue(wx.Colour(*e_val))
          self.__PostEvent()
function_tokens: def OnColour ( self , evt ) : e_val = evt . GetValue ( ) [ 0 : 3 ] red , green , blue = ( hex ( val ) [ 2 : ] . upper ( ) for val in e_val ) hex_str = u"#%s%s%s" % ( red . zfill ( 2 ) , green . zfill ( 2 ) , blue . zfill ( 2 ) ) self . _txt . SetValue ( hex_str ) self . _cbtn . SetValue ( wx . Colour ( * e_val ) ) self . __PostEvent ( )