basictypes.wxtypes.colour
index
p:\properties\basictypes\wxtypes\colour.py

wxPython colour data-type definition

 
Modules
       
wxPython.lib.colourdb
basictypes.datatypedefinition
basictypes.registry
wx
basictypes.wxtypes.wxcopyreg

 
Classes
       
BaseType_DT(DataTypeDefinition)
wxColour_DT

 
class wxColour_DT(BaseType_DT)
    Colour data-modelling type stand-in
 
 
Method resolution order:
wxColour_DT
BaseType_DT
DataTypeDefinition
object

Class methods defined here:
coerce(cls, value) from type
Attempt to convert the given value to a wx.Colour
 
Accepted Values:
        wx.Colour(Ptr)
        '#FFFFFF' style strings
        'black' string colour names
        3-tuple or 3-list of 0-255 integers
        None -- (gives black)

Data and other attributes defined here:
baseType = <class 'wx.gdi.Colour'>
A colour is an object representing a combination of Red, Green, and Blue (RGB)
intensity values, and is used to determine drawing colours, window colours,
etc.  Valid RGB values are in the range 0 to 255.
 
In wxPython there are typemaps that will automatically convert from a colour
name, or from a "#RRGGBB" colour hex value string to a wx.Colour object when
calling C++ methods that expect a wxColour.  This means that the following are
all equivallent:
 
    win.SetBackgroundColour(wxColour(0,0,255))
    win.SetBackgroundColour("BLUE")
    win.SetBackgroundColour("#0000FF")
 
You can retrieve the various current system colour settings with
wx.SystemSettings.GetColour.
dataType = 'wx.colour'

Class methods inherited from BaseType_DT:
check(cls, value) from type
Determine whether value conforms to definition
factories(cls) from type
Determine a sequence of factory objects

Static methods inherited from BaseType_DT:
__new__(cls, *args, **named)
Create a new instance of our base-type

Data and other attributes inherited from DataTypeDefinition:
__dict__ = <dictproxy object at 0x01D77F90>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'DataTypeDefinition' objects>
list of weak references to the object (if defined)

 
Data
        COLOUR_DB_INITIALISED = 0
__all__ = ('wxColour_DT',)
__file__ = r'p:\properties\basictypes\wxtypes\colour.pyc'
__name__ = 'basictypes.wxtypes.colour'