]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | |
2 | # Load all symbols that should appear in the wxPython.wx namespace | |
54f9ee45 RD |
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 * | |
d14a1e28 RD |
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 |