This class holds a variety of information related to colour dialogs.
See also
Constructor. |
|
Decodes the given string, which should be in the same format returned by wx.ToString , and sets the internal colours. |
|
Under Windows, determines whether the Windows colour dialog will display the full dialog with custom colour selection controls. |
|
Gets the current colour associated with the colour dialog. |
|
Returns custom colours associated with the colour dialog. |
|
Under Windows, tells the Windows colour dialog to display the full dialog with custom colour selection controls. |
|
Sets the default colour for the colour dialog. |
|
Sets custom colours for the colour dialog. |
|
Converts the colours saved in this class in a string form, separating the various colours with a comma. |
wx.
ColourData
(Object)¶Possible constructors:
ColourData()
This class holds a variety of information related to colour dialogs.
__init__
(self)¶Constructor.
Initializes the custom colours to NullColour
, the data colour setting to black, and the choose full setting to True
.
FromString
(self, str)¶Decodes the given string, which should be in the same format returned by wx.ToString , and sets the internal colours.
str (string) –
bool
GetChooseFull
(self)¶Under Windows, determines whether the Windows colour dialog will display the full dialog with custom colour selection controls.
Has no meaning under other platforms.
The default value is True
.
bool
GetColour
(self)¶Gets the current colour associated with the colour dialog.
The default colour is black.
GetCustomColour
(self, i)¶Returns custom colours associated with the colour dialog.
i (int) – An integer between 0 and 15, being any of the 15 custom colours that the user has saved. The default custom colours are invalid colours.
SetChooseFull
(self, flag)¶Under Windows, tells the Windows colour dialog to display the full dialog with custom colour selection controls.
Under other platforms, has no effect.
The default value is True
.
flag (bool) –
SetColour
(self, colour)¶Sets the default colour for the colour dialog.
The default colour is black.
colour (wx.Colour) –
SetCustomColour
(self, i, colour)¶Sets custom colours for the colour dialog.
i (int) – An integer between 0 and 15 for whatever custom colour you want to set. The default custom colours are invalid colours.
colour (wx.Colour) – The colour to set
ToString
(self)¶Converts the colours saved in this class in a string form, separating the various colours with a comma.
string
ChooseFull
¶See GetChooseFull
and SetChooseFull