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
37 wxDC
.FloodFill
= wxDC
.FloodFillXY
38 wxDC
.GetPixel
= wxDC
.GetPixelXY
39 wxDC
.DrawLine
= wxDC
.DrawLineXY
40 wxDC
.CrossHair
= wxDC
.CrossHairXY
41 wxDC
.DrawArc
= wxDC
.DrawArcXY
42 wxDC
.DrawCheckMark
= wxDC
.DrawCheckMarkXY
43 wxDC
.DrawEllipticArc
= wxDC
.DrawEllipticArcXY
44 wxDC
.DrawPoint
= wxDC
.DrawPointXY
45 wxDC
.DrawRectangle
= wxDC
.DrawRectangleXY
46 wxDC
.DrawRoundedRectangle
= wxDC
.DrawRoundedRectangleXY
47 wxDC
.DrawCircle
= wxDC
.DrawCircleXY
48 wxDC
.DrawEllipse
= wxDC
.DrawEllipseXY
49 wxDC
.DrawIcon
= wxDC
.DrawIconXY
50 wxDC
.DrawBitmap
= wxDC
.DrawBitmapXY
51 wxDC
.DrawText
= wxDC
.DrawTextXY
52 wxDC
.DrawRotatedText
= wxDC
.DrawRotatedTextXY
53 wxDC
.Blit
= wxDC
.BlitXY
54 wxDC
.SetClippingRegion
= wxDC
.SetClippingRegionXY