]> git.saurik.com Git - wxWidgets.git/blame - wxPython/wxPython/__init__.py
Fix default value for wxFontPickerCtrl's initial font parameter
[wxWidgets.git] / wxPython / wxPython / __init__.py
CommitLineData
d14a1e28
RD
1# The "old" wxPython package
2
4b40bcb4
RD
3import warnings
4warnings.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
15import _wx
16import sys
17sys.modules['wxPython.wx'] = _wx
18wx = _wx
19del sys
c9c106fd
RD
20
21from wx import __version__