]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | |
2 | # Load all symbols that should appear in the wxPython.wx namespace | |
3 | from core import * | |
c9c106fd | 4 | from core import __version__ |
d14a1e28 RD |
5 | from gdi import * |
6 | from windows import * | |
7 | from controls import * | |
8 | from misc import * | |
9 | ||
10 | # Cleanup this one. | |
11 | del wx | |
cf763f5b RD |
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 | 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 | |
55 |