direct.tkpanels.Inspector

from direct.tkpanels.Inspector import ClassInspector, CodeInspector, ComplexInspector, DictionaryInspector, FunctionInspector, Inspector, InspectorWindow, InstanceInspector, InstanceMethodInspector, ModuleInspector, SequenceInspector, SliceInspector, initializeInspectorMap, inspect, inspectorFor

Inspectors allow you to visually browse through the members of various Python objects. To open an inspector, import this module, and execute inspector.inspect(anObject).

I start IDLE with this command line:

idle.py -c "from inspector import inspect"

so that I can just type: inspect(anObject) any time.

See Utility Functions for more information.

Inheritance diagram

Inheritance diagram of direct.tkpanels.Inspector

class ClassInspector(anObject)[source]

Bases: Inspector

namedParts(self)[source]
title(self)[source]
class CodeInspector(anObject)[source]

Bases: Inspector

title(self)[source]
class ComplexInspector(anObject)[source]

Bases: Inspector

namedParts(self)[source]
class DictionaryInspector(anObject)[source]

Bases: Inspector

initializePartsList(self)[source]
partNumber(self, partNumber)[source]
class FunctionInspector(anObject)[source]

Bases: Inspector

title(self)[source]
class Inspector(anObject)[source]

Bases: object

__init__(self, anObject)[source]
getLastPartNumber(self)[source]
initializePartNames(self)[source]
initializePartsList(self)[source]
inspectorFor(self, part)[source]
namedParts(self)[source]
objectType(self)[source]
partNames(self)[source]
partNumber(self, partNumber)[source]
privatePartNumber(self, partNumber)[source]
selectedPart(self)[source]
stringForPartNumber(self, partNumber)[source]
title(self)[source]

Subclasses may override.

class InspectorWindow(inspector)[source]

Bases: object

__init__(self, inspector)[source]
createListWidget(self)[source]
createMenus(self)[source]
createPopupMenu(self, part, menuList)[source]
createTextWidgets(self)[source]
createViews(self)[source]
dive(self)[source]
evalCommand(self, event)[source]

Eval text in commandWidget

fillList(self)[source]
inspect(self)[source]
inspectedObject(self)[source]
inspectorForSelectedPart(self)[source]
listSelectionChanged(self, event)[source]
open(self)[source]
pop(self)[source]
popOrDive(self, event)[source]

The list has been double-clicked. If the selection is ‘self’ then pop, otherwise dive into the selected part

popupMenu(self, event)[source]
selectedIndex(self)[source]
selectedPart(self)[source]
setTitle(self)[source]
showHelp(self)[source]
topInspector(self)[source]
update(self)[source]
class InstanceInspector(anObject)[source]

Bases: Inspector

namedParts(self)[source]
title(self)[source]
class InstanceMethodInspector(anObject)[source]

Bases: Inspector

title(self)[source]
class ModuleInspector(anObject)[source]

Bases: Inspector

namedParts(self)[source]
class SequenceInspector(anObject)[source]

Bases: Inspector

initializePartsList(self)[source]
partNumber(self, partNumber)[source]
class SliceInspector(anObject)[source]

Bases: Inspector

namedParts(self)[source]
initializeInspectorMap()[source]
inspect(anObject)[source]

Opens up a window for visually inspecting the details of a given Python object. See Utility Functions.

inspectorFor(anObject)[source]