ColourSwatch.ColourSwatch Class Reference


Detailed Description

This control displays a swatch of colour.

When you click on it, a colour chooser pops up so that you can pick a different colour. When the colour is changed by the user, this control issues an ColourChangedEvent event.

Colours should be specified as objects of type wx.Colour

List of all members.

Public Member Functions

  __init__ ()
  Initialize the class.
  SetColour ()
  Specify a new colour.
  GetColour ()
  Return the current colour of the widget.

Public Attributes

  theColourEditor = None
  theSwatchUsingTheEditor = None
  theCreator = None

Member Function Documentation

ColourSwatch.ColourSwatch.__init__ ( )

Initialize the class.

parent: The window that is a parent of this control id: a unique id colour: the colour first displayed in this control pos: a tuple (x,y) for the upper-left corner of the control size: a tuple (w,h) for the size of the control

ColourSwatch.ColourSwatch.SetColour ( )

Specify a new colour.

This will not trigger a colour-select event.

ColourSwatch.ColourSwatch.GetColour ( )

Return the current colour of the widget.


Member Data Documentation


ColourSwatch.ColourSwatch ColourSwatch.ColourSwatch ColourSwatch.ColourSwatch ColourSwatch.ColourSwatch ColourSwatch.ColourSwatch ColourSwatch.ColourSwatch ColourSwatch.ColourSwatch ColourSwatch.ColourSwatch ColourSwatch.ColourSwatch ColourSwatch.ColourSwatch
ColourSwatch.ColourSwatch ColourSwatch.ColourSwatch ColourSwatch.ColourSwatch ColourSwatch.ColourSwatch ColourSwatch.ColourSwatch ColourSwatch.ColourSwatch ColourSwatch.ColourSwatch ColourSwatch.ColourSwatch ColourSwatch.ColourSwatch ColourSwatch.ColourSwatch