Table Of Contents

Previous topic

InspectableApp

Next topic

listctrl

This Page

phoenix_title InspectionMixin

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.


class_hierarchy Inheritance Diagram

Inheritance diagram for class InspectionMixin

Inheritance diagram of InspectionMixin


method_summary Methods Summary

InitInspection Make the event binding that will activate the InspectionFrame window.
ShowInspectionTool Show the Inspection tool, creating it if neccesary, setting it

api Class API



class InspectionMixin(object)

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.


Methods



InitInspection(self, pos=DefaultPosition, size=Size(850, 700), config=None, locals=None, alt=True, cmd=True, shift=False, keyCode=ord('I'))

Make the event binding that will activate the InspectionFrame window.



ShowInspectionTool(self)

Show the Inspection tool, creating it if neccesary, setting it to display the widget under the cursor.