]> git.saurik.com Git - wxWidgets.git/blob - wxPython/wxPython/_wx.py
55bf54dc42a9a685d912a1ebab2d80d5e7657dbc
[wxWidgets.git] / wxPython / wxPython / _wx.py
1
2 # Load all symbols that should appear in the wxPython.wx namespace
3 from core import *
4 from core import __version__
5 from gdi import *
6 from windows import *
7 from controls import *
8 from misc import *
9
10 # Cleanup this one.
11 del wx
12
13
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.
18
19 wxPyDefaultPosition = wxDefaultPosition
20 wxPyDefaultSize = wxDefaultSize
21 wxNoRefBitmap = wxBitmap
22 wxSystemSettings_GetSystemColour = wxSystemSettings_GetColour
23 wxSystemSettings_GetSystemFont = wxSystemSettings_GetFont
24 wxSystemSettings_GetSystemMetric = wxSystemSettings_GetMetric
25 wxColor = wxColour
26 wxNamedColor = wxNamedColour
27
28 NULL = None
29 TRUE = true = True
30 FALSE = false = False
31
32 def wxPyTypeCast(obj, typeStr):
33 return obj
34
35 wxPy_isinstance = isinstance
36
37
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...)
43
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
62