This class is intended to be used as a mix-in with the App
.
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 App
and
InspectionMixin
and then call the
InspectionMixin.Init
method from the app’s
AppConsole.OnInit
method.
InitInspection |
Make the event binding that will activate the InspectionFrame window. |
ShowInspectionTool |
Show the Inspection tool, creating it if neccesary, setting it |
InspectionMixin
(object)¶This class is intended to be used as a mix-in with the App
.
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 App
and
InspectionMixin
and then call the
InspectionMixin.Init
method from the app’s
AppConsole.OnInit
method.
InitInspection
(self, pos=wx.DefaultPosition, size=wx.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.
Parameters: |
|
---|
ShowInspectionTool
(self)¶Show the Inspection tool, creating it if neccesary, setting it to display the widget under the cursor.