Home | Trees | Index | Help |
|
---|
Package wx :: Package lib :: Package colourchooser :: Module pycolourbox :: Class PyColourBox |
|
object
--+ |Object
--+ |EvtHandler
--+ |Window
--+ |Panel
--+ | PyColourBox
A Colour Selection Box
The Colour selection box implements button like behavior but contains a solid-filled, coloured sub-box. Placing the colour in a sub-box allows for filling in the main panel's background for a high-lighting effect.
Method Summary | |
---|---|
Creates a new colour box instance and initializes the colour content. | |
Returns a wxColour object indicating the box's current colour. | |
Returns a reference to the internal box object containing the color. | |
Accepts a wxColour object and sets the box's current color. | |
Sets the box's current couple to the given tuple. | |
Accepts a boolean 'val' toggling the box's highlighting. | |
Update(self)
|
Property Summary |
---|
Instance Method Details |
---|
__init__(self,
parent,
id,
colour=(0, 0, 0),
size=(25, 20))
|
GetColour(self)Returns a wxColour object indicating the box's current colour. |
GetColourBox(self)Returns a reference to the internal box object containing the color. This function is useful for setting up event handlers for the box. |
SetColour(self, colour)Accepts a wxColour object and sets the box's current color. |
SetColourTuple(self, colour)Sets the box's current couple to the given tuple. |
SetHighlight(self, val)Accepts a boolean 'val' toggling the box's highlighting. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1.20050511.rpd on Thu Mar 22 12:07:39 2007 | http://epydoc.sf.net |