basictypes.registry
index
p:\properties\basictypes\registry.py

Mapping from core types/classes to stand-in DataTypeDefinitions

 
Functions
       
getDT(base)
Return the appropriate DT for the given base-class
 
This looks up the base in the registry, returning
either a registered stand-alone data-type-definition
or the base itself.
registerDT(base, DT)
Register a DataTypeDefinition for a given base-class

 
Data
        REGISTRY = {<class wxPython.fonts.wxFontPtr at 0x00FBC3F0>: <class 'basictypes.wx.font.wxFont_DT'>, <class wxPython.gdi.wxColourPtr at 0x00FBC420>: <class 'basictypes.wx.colour.wxColour_DT'>, <class wxPython.gdi.wxColour at 0x00FBC450>: <class 'basictypes.wx.colour.wxColour_DT'>, <class wxPython.fonts.wxFont at 0x00FBC540>: <class 'basictypes.wx.font.wxFont_DT'>, <class wxPython.gdi.wxPenPtr at 0x00FBC810>: <class basictypes.wx.pen.wxPen at 0x01A13450>, <class wxPython.gdi.wxPyPenPtr at 0x00FBC870>: <class basictypes.wx.pen.wxPen at 0x01A13450>, <type 'mx.DateTime.DateTime'>: <class 'basictypes.datemx_types.mxDateTime_DT'>, <type 'mx.DateTime.DateTimeDelta'>: <class 'basictypes.datemx_types.mxDateTimeDelta_DT'>, <type 'bool'>: <class 'basictypes.basic_types.Boolean_DT'>, <type 'float'>: <class 'basictypes.basic_types.Float_DT'>, ...}