Module CubeColourDialog :: Class Colour
[hide private]
[frames] | no frames]

Class Colour

source code

     object --+        
              |        
wx._core.Object --+    
                  |    
     wx._gdi.Colour --+
                      |
                     Colour

This is a subclass of wx.Colour, which adds Hue, Saturation and Brightness capability to the base class. It contains also methods to convert RGB triplets into HSB triplets and vice-versa.

Instance Methods [hide private]
  __init__(self, colour)
Default class constructor.
  ToRGB(self)
Converts a HSV triplet into a RGB triplet.
  ToHSV(self)
Converts a RGB triplet into a HSV triplet.
  GetPyColour(self)
Returns the wxPython wx.Colour associated with this instance.

Inherited from wx._gdi.Colour: Alpha, Blue, Get, GetAsString, GetPixel, GetRGB, Green, IsOk, Ok, Red, Set, SetFromName, SetRGB, __del__, __eq__, __getitem__, __len__, __ne__, __nonzero__, __reduce__, __repr__, __str__, __swig_destroy__, asTuple

Inherited from wx._core.Object: Destroy, GetClassName, IsSameAs

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce_ex__, __setattr__


Class Variables [hide private]

Inherited from wx._gdi.Colour: __safe_for_unpickling__


Properties [hide private]

Inherited from wx._gdi.Colour: Pixel, RGB, thisown

Inherited from wx._core.Object: ClassName

Inherited from object: __class__


Method Details [hide private]

__init__(self, colour)
(Constructor)

source code 

Default class constructor.

colour is a standard wxPython colour.
Overrides: wx._gdi.Colour.__init__

ToRGB(self)

source code 
Converts a HSV triplet into a RGB triplet.

ToHSV(self)

source code 
Converts a RGB triplet into a HSV triplet.

GetPyColour(self)

source code 
Returns the wxPython wx.Colour associated with this instance.