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