]>
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 | ||
998e6e9f RD |
14 | # Make some aliases to help backawrds compatibility for the old |
15 | # namespace. This is only for code that is using tthe wxPython.wx | |
16 | # package and using names and classes in the old way. New code should | |
17 | # use the wx namespace and the new names. | |
cf763f5b RD |
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 | ||
88c0b108 | 37 | |
4942342c RD |
38 | |
39 | # The wx*DC_old classes have Draw* method signatures that are mostly | |
40 | # compatible with 2.4, so assign the new classes to wx*DC_new and make | |
41 | # the _old classes be the defaults with the normal names. | |
42 | ||
4942342c RD |
43 | wxDC_new = wxDC; wxDC = wxDC_old |
44 | wxMemoryDC_new = wxMemoryDC; wxMemoryDC = wxMemoryDC_old | |
45 | wxBufferedDC_new = wxBufferedDC; wxBufferedDC = wxBufferedDC_old | |
46 | wxBufferedPaintDC_new = wxBufferedPaintDC; wxBufferedPaintDC = wxBufferedPaintDC_old | |
47 | wxScreenDC_new = wxScreenDC; wxScreenDC = wxScreenDC_old | |
48 | wxClientDC_new = wxClientDC; wxClientDC = wxClientDC_old | |
49 | wxPaintDC_new = wxPaintDC; wxPaintDC = wxPaintDC_old | |
50 | wxWindowDC_new = wxWindowDC; wxWindowDC = wxWindowDC_old | |
51 | wxMirrorDC_new = wxMirrorDC; wxMirrorDC = wxMirrorDC_old | |
52 | wxPostScriptDC_new = wxPostScriptDC; wxPostScriptDC = wxPostScriptDC_old | |
53 | wxMetaFileDC_new = wxMetaFileDC; wxMetaFileDC = wxMetaFileDC_old | |
54 | wxPrinterDC_new = wxPrinterDC; wxPrinterDC = wxPrinterDC_old | |
cf763f5b | 55 |