This class holds a variety of information related to colour dialogs.
See also
wx.Colour, wx.ColourDialog, ColourDialog Overview
Constructor. |
|
Decodes the given string, which should be in the same format returned by wx.ToString , and sets the internal colours. |
|
Indicates whether the colour dialog will display alpha values and an opacity selector. |
|
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. |
|
Tells the colour dialog to show alpha values and an opacity selector (slider). |
|
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. |
See |
|
See |
|
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
GetChooseAlpha
(self)¶Indicates whether the colour dialog will display alpha values and an opacity selector.
It is meaningful under wxGTK, wxOSX and with regards to generic colour dialog.
The default value is False
, except wxOSX where it is True
(for the sake of backward compatibility).
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.
SetChooseAlpha
(self, flag)¶Tells the colour dialog to show alpha values and an opacity selector (slider).
Currently it has effect under wxGTK, wxOSX and for generic colour dialog.
The default value is False
, except wxOSX where it is True
for backward compatibility.
flag (bool) –
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
ChooseAlpha
¶See GetChooseAlpha
and SetChooseAlpha
ChooseFull
¶See GetChooseFull
and SetChooseFull