phoenix_title wx.lib.inspection.InspectionTool

The InspectionTool is a singleton that manages creating and showing an InspectionFrame.


class_hierarchy Class Hierarchy

Inheritance diagram for class InspectionTool:

method_summary Methods Summary

__init__

Initialize self. See help(type(self)) for accurate signature.

Init

Init is used to set some parameters that will be used later

Show

Creates the inspection frame if it hasn’t been already, and


api Class API

class InspectionTool

The InspectionTool is a singleton that manages creating and showing an InspectionFrame.


Methods

__init__(self)

Initialize self. See help(type(self)) for accurate signature.



Init(self, pos=wx.DefaultPosition, size=wx.Size(850, 700), config=None, locals=None, app=None)

Init is used to set some parameters that will be used later when the inspection tool is shown. Suitable defaults will be used for all of these parameters if they are not provided.

Parameters:
  • pos – The default position to show the frame at

  • size – The default size of the frame

  • config – A Config object to be used to store layout and other info to when the inspection frame is closed. This info will be restored the next time the inspection frame is used.

  • locals – A dictionary of names to be added to the PyCrust namespace.

  • app – A reference to the App object.



Show(self, selectObj=None, refreshTree=False)

Creates the inspection frame if it hasn’t been already, and raises it if necessary.

Parameters:
  • selectObj – Pass a widget or sizer to have that object be preselected in widget tree.

  • refreshTree (boolean) – rebuild the widget tree, default False