#----------------------------------------------------------------------------
# NOTE: This class is based on ideas sent to the wxPython-users
#----------------------------------------------------------------------------
# NOTE: This class is based on ideas sent to the wxPython-users
To use this class simply derive a class from wx.App and
InspectionMixin and then call the Init() method from the app's
OnInit.
To use this class simply derive a class from wx.App and
InspectionMixin and then call the Init() method from the app's
OnInit.
"""
Make the event binding that will activate the PyCrust window.
"""
self.Bind(wx.EVT_KEY_DOWN, self.OnKeyPress)
self._crust = None
"""
Make the event binding that will activate the PyCrust window.
"""
self.Bind(wx.EVT_KEY_DOWN, self.OnKeyPress)
self._crust = None
self._crust.shell.interp.locals['app'] = self
win = wx.FindWindowAtPointer()
self._crust.shell.interp.locals['win'] = win
self._crust.Show()
self._crust.shell.interp.locals['app'] = self
win = wx.FindWindowAtPointer()
self._crust.shell.interp.locals['win'] = win
self._crust.Show()