cbfc9df676
Make updates for recent changes on CVS HEAD. Remove or workaround deprecated items. Fix compile errors. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
22 lines
664 B
Python
22 lines
664 B
Python
# The "old" wxPython package
|
|
|
|
import warnings
|
|
warnings.warn(
|
|
"The wxPython compatibility package is no longer automatically generated "
|
|
"or actively maintained. Please switch to the wx package as soon as possible.",
|
|
DeprecationWarning, stacklevel=2)
|
|
|
|
# We need to be able to import from the wx package, but there is also
|
|
# a wxPython.wx module and that would normally be chosen first by
|
|
# import statements. So instead we'll have a wxPython._wx module and
|
|
# then stuff it into sys.modules with a wxPython.wx alias so old
|
|
# programs will still work.
|
|
|
|
import _wx
|
|
import sys
|
|
sys.modules['wxPython.wx'] = _wx
|
|
wx = _wx
|
|
del sys
|
|
|
|
from wx import __version__
|