The InspectionTool
is a singleton that manages creating and
showing an InspectionFrame
.
Initialize self. See help(type(self)) for accurate signature. |
|
Init is used to set some parameters that will be used later |
|
Creates the inspection frame if it hasn’t been already, and |
InspectionTool
¶The InspectionTool
is a singleton that manages creating and
showing an InspectionFrame
.
__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.
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.
selectObj – Pass a widget or sizer to have that object be preselected in widget tree.
refreshTree (boolean) – rebuild the widget tree, default False