.. include:: headings.inc .. _ColourPickerEvent: ========================================================================================================================================== |phoenix_title| **ColourPickerEvent** ========================================================================================================================================== This event class is used for the events generated by :ref:`ColourPickerCtrl`. .. _ColourPickerEvent-events: |events| Events Emitted by this Class ===================================== Handlers bound for the following event types will receive a :ref:`ColourPickerEvent` parameter. - EVT_COLOURPICKER_CHANGED: Generated whenever the selected colour changes. .. seealso:: :ref:`ColourPickerCtrl` | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **ColourPickerEvent** .. raw:: html

Inheritance diagram of ColourPickerEvent

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~ColourPickerEvent.__init__` :meth:`~ColourPickerEvent.GetColour` Retrieve the colour the user has just selected. :meth:`~ColourPickerEvent.SetColour` Set the colour associated with the event. ================================================================================ ================================================================================ | |property_summary| Properties Summary ===================================== ================================================================================ ================================================================================ :attr:`~ColourPickerEvent.Colour` See :meth:`~ColourPickerEvent.GetColour` and :meth:`~ColourPickerEvent.SetColour` ================================================================================ ================================================================================ | |api| Class API =============== .. class:: ColourPickerEvent(CommandEvent) This event class is used for the events generated by ColourPickerCtrl. **Possible constructors**:: ColourPickerEvent() ColourPickerEvent(generator, id, colour) .. method:: __init__(self, *args, **kw) |overload| **Overloaded Implementations**: **~~~** **__init__** `(self)` **~~~** **__init__** `(self, generator, id, colour)` The constructor is not normally used by the user code. :param `generator`: :type `generator`: Object :param `id`: :type `id`: int :param `colour`: :type `colour`: Colour **~~~** .. method:: GetColour(self) Retrieve the colour the user has just selected. :rtype: :ref:`Colour` .. method:: SetColour(self, pos) Set the colour associated with the event. :param `pos`: :type `pos`: Colour .. attribute:: Colour See :meth:`~ColourPickerEvent.GetColour` and :meth:`~ColourPickerEvent.SetColour`