]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/wxPython/__init__.py
drop highlight color fix
[wxWidgets.git] / wxPython / wxPython / __init__.py
index ff5af048a7fc8a84fa8a9e8c85bec39445c2bad7..0b59d5bdc1f781ab4ed81d2b24da936dccff58eb 100644 (file)
@@ -1,10 +1,15 @@
 # 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 wxPyton.wx module and that woudl normally be chosen first by
+# 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 odl
+# then stuff it into sys.modules with a wxPython.wx alias so old
 # programs will still work.
 
 import _wx
@@ -12,3 +17,5 @@ import sys
 sys.modules['wxPython.wx'] = _wx
 wx = _wx
 del sys
+
+from wx import __version__