put wx in the shell's namespace too

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2006-12-22 23:50:51 +00:00
parent 471046b088
commit c306c1e0f6

View File

@ -13,6 +13,7 @@
# NOTE: This class is based on ideas sent to the wxPython-users
# mail-list by Dan Eloff.
import wx
import wx.py
class InspectionMixin(object):
@ -54,6 +55,7 @@ class InspectionMixin(object):
self._crust = wx.py.crust.CrustFrame(self.GetTopWindow(),
pos = self._pos, size = self._size)
self._crust.shell.interp.locals['app'] = self
self._crust.shell.interp.locals['wx'] = wx
win = wx.FindWindowAtPointer()
self._crust.shell.interp.locals['win'] = win
self._crust.Show()