2 # Load all symbols that should appear in the wxPython.wx namespace
4 from core
import __version__
14 # Make some to help backawrds compatibility for the old namespace.
15 # This is only for code that is using tthe wxPython.wx package and
16 # using names and classes in the old way. New code should use the wx
17 # namespace and the new names.
19 wxPyDefaultPosition
= wxDefaultPosition
20 wxPyDefaultSize
= wxDefaultSize
21 wxNoRefBitmap
= wxBitmap
22 wxSystemSettings_GetSystemColour
= wxSystemSettings_GetColour
23 wxSystemSettings_GetSystemFont
= wxSystemSettings_GetFont
24 wxSystemSettings_GetSystemMetric
= wxSystemSettings_GetMetric
26 wxNamedColor
= wxNamedColour
32 def wxPyTypeCast(obj
, typeStr
):
35 wxPy_isinstance
= isinstance
38 # To get wxDC methods compatible with the old 2.4 wxDC uncomment these
39 # lines. Note however that doing this will break any code that
40 # expects the new-style methods. (Is there a way to do this that does
41 # not have that problem? I suppose we could provide two versions of
42 # the DC classes and just rename them here...)
44 #wxDC.FloodFill = wxDC.FloodFillXY
45 #wxDC.GetPixel = wxDC.GetPixelXY
46 #wxDC.DrawLine = wxDC.DrawLineXY
47 #wxDC.CrossHair = wxDC.CrossHairXY
48 #wxDC.DrawArc = wxDC.DrawArcXY
49 #wxDC.DrawCheckMark = wxDC.DrawCheckMarkXY
50 #wxDC.DrawEllipticArc = wxDC.DrawEllipticArcXY
51 #wxDC.DrawPoint = wxDC.DrawPointXY
52 #wxDC.DrawRectangle = wxDC.DrawRectangleXY
53 #wxDC.DrawRoundedRectangle = wxDC.DrawRoundedRectangleXY
54 #wxDC.DrawCircle = wxDC.DrawCircleXY
55 #wxDC.DrawEllipse = wxDC.DrawEllipseXY
56 #wxDC.DrawIcon = wxDC.DrawIconXY
57 #wxDC.DrawBitmap = wxDC.DrawBitmapXY
58 #wxDC.DrawText = wxDC.DrawTextXY
59 #wxDC.DrawRotatedText = wxDC.DrawRotatedTextXY
60 #wxDC.Blit = wxDC.BlitXY
61 #wxDC.SetClippingRegion = wxDC.SetClippingRegionXY