direct.tkwidgets.SceneGraphExplorer

from direct.tkwidgets.SceneGraphExplorer import SceneGraphExplorer, SceneGraphExplorerItem, explore

This module defines a widget used to display a graphical overview of the scene graph using the tkinter GUI system.

Requires Pmw.

Inheritance diagram

Inheritance diagram of direct.tkwidgets.SceneGraphExplorer

class SceneGraphExplorer(parent=None, nodePath=None, isItemEditable=True, **kw)[source]

Bases: MegaWidget, DirectObject

Graphical display of a scene graph

__init__(self, parent=None, nodePath=None, isItemEditable=True, **kw)[source]
mouse2Down(self, event)[source]
mouse2Motion(self, event)[source]
onDestroy(self, event)[source]
setChildrenTag(self, tag, fModeChildrenTag)[source]
setFSortChildren(self, fSortChildren)[source]
update(self, fUseCachedChildren=1)[source]

Refresh scene graph explorer

updateSelection(self, searchKey)[source]
class SceneGraphExplorerItem(nodePath, isItemEditable=True)[source]

Bases: TreeItem

Example TreeItem subclass – browse the file system.

GetIconName(self)[source]
GetKey(self)[source]
GetSubList(self)[source]
GetText(self)[source]
IsEditable(self)[source]
IsExpandable(self)[source]
MenuCommand(self, command)[source]
OnSelect(self)[source]
SetText(self, text)[source]
__init__(self, nodePath, isItemEditable=True)[source]
explore(nodePath=None)[source]