phoenix_title wx.ColourPickerEvent

This event class is used for the events generated by wx.ColourPickerCtrl.

^^

events Events Emitted by this Class

Handlers bound for the following event types will receive a wx.ColourPickerEvent parameter.

  • EVT_COLOURPICKER_CHANGED: Generated whenever the selected colour changes.

  • EVT_COLOURPICKER_CURRENT_CHANGED: Generated whenever the currently selected colour in the dialog shown by the picker changes. This event is new since wxWidgets 3.1.3 and currently is only implemented in wxMSW.

  • EVT_COLOURPICKER_DIALOG_CANCELLED: Generated when the user cancels the colour dialog associated with the control, i.e. closes it without accepting the selection. This event is new since wxWidgets 3.1.3 and currently is only implemented in wxMSW. ^^


class_hierarchy Class Hierarchy

Inheritance diagram for class ColourPickerEvent:

method_summary Methods Summary

__init__

GetColour

Retrieve the colour the user has just selected.

SetColour

Set the colour associated with the event.


property_summary Properties Summary

Colour

See GetColour and SetColour


api Class API

class wx.ColourPickerEvent(CommandEvent)

Possible constructors:

ColourPickerEvent()

ColourPickerEvent(generator, id, colour)

This event class is used for the events generated by ColourPickerCtrl.


Methods

__init__(self, *args, **kw)

overload Overloaded Implementations:



__init__ (self)



__init__ (self, generator, id, colour)

The constructor is not normally used by the user code.

Parameters





GetColour(self)

Retrieve the colour the user has just selected.

Return type

wx.Colour



SetColour(self, pos)

Set the colour associated with the event.

Parameters

pos (wx.Colour) –


Properties

Colour

See GetColour and SetColour