Home | Trees | Index | Help |
|
---|
Package wx :: Class ColourPickerCtrl |
|
object
--+ |Object
--+ |EvtHandler
--+ |Window
--+ |Control
--+ |PickerBase
--+ | ColourPickerCtrl
This control allows the user to select a colour. The generic
implementation is a button which brings up a wx.ColourDialog
when
clicked. Native implementations may differ but this is usually a
(small) widget which give access to the colour-chooser dialog.
Window Styles
-------------
wx.CLRP_DEFAULT Default style. wx.CLRP_USE_TEXTCTRL Creates a text control to the left of the picker button which is completely managed by the wx.ColourPickerCtrl
and which can be used by the user to specify a colour. The text control is automatically synchronized with the button's value. Use functions defined inwx.PickerBase
to modify the text control.wx.CLRP_SHOW_LABEL Shows the colour in HTML form (AABBCC) as the colour button label (instead of no label at all).
EVT_COLOURPICKER_CHANGED The user changed the colour selected in the control either using the button or using the text control (see wx.CLRP_USE_TEXTCTRL; note that in this case the event is fired only if the user's input is valid, i.e. recognizable).
Method Summary | |
---|---|
ColourPickerCtrl |
This control allows the user to select a colour. |
bool |
Do the 2nd phase and create the GUI control. |
Colour |
Returns the currently selected colour. |
Set the displayed colour. |
Property Summary | |
---|---|
Colour : See GetColour and SetColour | |
thisown : The membership flag |
Instance Method Details |
---|
__init__(self,
parent,
id=-1,
col=*wxBLACK,
pos=DefaultPosition,
size=DefaultSize,
style=CLRP_DEFAULT_STYLE,
validator=DefaultValidator,
name=ColourPickerCtrlNameStr)
|
wx.CLRP_DEFAULT | Default style. |
wx.CLRP_USE_TEXTCTRL | Creates a text control to the left of the
picker button which is completely managed
by the wx.ColourPickerCtrl and which can
be used by the user to specify a colour.
The text control is automatically synchronized
with the button's value. Use functions defined in
wx.PickerBase to modify the text control. |
wx.CLRP_SHOW_LABEL | Shows the colour in HTML form (AABBCC) as the colour button label (instead of no label at all). |
EVT_COLOURPICKER_CHANGED The user changed the colour selected in the control either using the button or using the text control (see wx.CLRP_USE_TEXTCTRL; note that in this case the event is fired only if the user's input is valid, i.e. recognizable).
parent
id
col
pos
size
style
validator
name
wx.PickerBase.__init__
Create(self, parent, id, col=*wxBLACK, pos=DefaultPosition, size=DefaultSize, style=CLRP_DEFAULT_STYLE, validator=DefaultValidator, name=ColourPickerCtrlNameStr)Do the 2nd phase and create the GUI control.
|
GetColour(self)Returns the currently selected colour.
|
SetColour(self, col)Set the displayed colour.
|
Property Details |
---|
Colour |
thisownThe membership flag |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:11:34 2007 | http://epydoc.sf.net |