]> git.saurik.com Git - wxWidgets.git/commitdiff
put wx in the shell's namespace too
authorRobin Dunn <robin@alldunn.com>
Fri, 22 Dec 2006 23:50:51 +0000 (23:50 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 22 Dec 2006 23:50:51 +0000 (23:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/mixins/inspect.py

index 6e6951a7cd913d818cce39fa537351b1b1b57f6e..fc114c597a2d8fd34b7c403a86bee0ee4723e3ea 100644 (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()