This class is intended to be used as a mix-in with the wx.App class. When used it will add the ability to popup a InspectionFrame window where the widget under the mouse cursor will be selected in the tree and loaded into the shell’s namespace as ‘obj’. The default key sequence to activate the inspector is Ctrl-Alt-I (or Cmd-Alt-I on Mac) but this can be changed via parameters to the Init method, or the application can call ShowInspectionTool from other event handlers if desired.
To use this class simply derive a class from wx.App and InspectionMixin and then call the Init method from the app’s OnInit.
InitInspection | Make the event binding that will activate the InspectionFrame window. |
ShowInspectionTool | Show the Inspection tool, creating it if neccesary, setting it |
This class is intended to be used as a mix-in with the wx.App class. When used it will add the ability to popup a InspectionFrame window where the widget under the mouse cursor will be selected in the tree and loaded into the shell’s namespace as ‘obj’. The default key sequence to activate the inspector is Ctrl-Alt-I (or Cmd-Alt-I on Mac) but this can be changed via parameters to the Init method, or the application can call ShowInspectionTool from other event handlers if desired.
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 InspectionFrame window.
Show the Inspection tool, creating it if neccesary, setting it to display the widget under the cursor.