wxPython package and rename wxFooBar --> FooBar. That means that people imports without "import *" and can use names like wx.Frame instead of wx.wxFrame. This is phase 1 of a full transition to the new namespace. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
16 lines
330 B
Python
16 lines
330 B
Python
"""Provides a way to drop the wx prefix from wxPython objects."""
|
|
|
|
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
|
|
__cvsid__ = "$Id$"
|
|
__revision__ = "$Revision$"[11:-2]
|
|
|
|
import wx
|
|
from wx import prefix
|
|
|
|
from wxPython.lib import anchors
|
|
prefix.rename(d_new=globals(), d_old=anchors.__dict__)
|
|
del anchors
|
|
|
|
del prefix
|
|
del wx
|