]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | # The "old" wxPython package |
2 | ||
4b40bcb4 RD |
3 | import warnings |
4 | warnings.warn( | |
5 | "The wxPython compatibility package is no longer automatically generated " | |
6 | "or activly maintained. Please switch to the wx package as soon as possible.", | |
7 | DeprecationWarning, stacklevel=2) | |
d14a1e28 RD |
8 | |
9 | # We need to be able to import from the wx package, but there is also | |
8a5d6508 | 10 | # a wxPython.wx module and that would normally be chosen first by |
d14a1e28 | 11 | # import statements. So instead we'll have a wxPython._wx module and |
c9c106fd | 12 | # then stuff it into sys.modules with a wxPython.wx alias so old |
d14a1e28 RD |
13 | # programs will still work. |
14 | ||
15 | import _wx | |
16 | import sys | |
17 | sys.modules['wxPython.wx'] = _wx | |
18 | wx = _wx | |
19 | del sys | |
c9c106fd RD |
20 | |
21 | from wx import __version__ |