]> git.saurik.com Git - wxWidgets.git/blob - wxPython/wxPython/__init__.py
DeprecationWarning for the old wxPython package.
[wxWidgets.git] / wxPython / wxPython / __init__.py
1 # The "old" wxPython package
2
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)
8
9 # We need to be able to import from the wx package, but there is also
10 # a wxPython.wx module and that would normally be chosen first by
11 # import statements. So instead we'll have a wxPython._wx module and
12 # then stuff it into sys.modules with a wxPython.wx alias so old
13 # programs will still work.
14
15 import _wx
16 import sys
17 sys.modules['wxPython.wx'] = _wx
18 wx = _wx
19 del sys
20
21 from wx import __version__