API Reference for Enthought Tool Suite 3.0.1
cb_tree_editor = TreeEditor(editable = False, on_select = 'object.select', nodes = [ TreeNode(node_for = [ ClassBrowserPaths ], auto_open = True, children = 'paths', label = '=Python Path'), ObjectTreeNode(node_for = [ CBPath ], label = 'path'), ObjectTreeNode(node_for = [ CBPackage ], label = 'name', icon_group = 'package', icon_open = 'package'), ObjectTreeNode(node_for = [ CBModule ], label = 'name', icon_group = 'module', icon_open = 'module'), ObjectTreeNode(node_for = [ CBClass ], label = 'name', icon_group = 'class', icon_open = 'class'), ObjectTreeNode(node_for = [ CBMethod ], label = 'name', icon_group = 'method', icon_open = 'method') ])
cb_tree_editor_with_source = TreeEditor(nodes = [ TreeNode(node_for = [ ClassBrowserPaths ], auto_open = True, view = empty_view, children = 'paths', label = '=Python Path'), ObjectTreeNode(node_for = [ CBPath ], label = 'path', view = empty_view), ObjectTreeNode(node_for = [ CBPackage ], label = 'name', view = source_view, icon_group = 'package', icon_open = 'package'), ObjectTreeNode(node_for = [ CBModule ], label = 'name', view = source_view, icon_group = 'module', icon_open = 'module'), ObjectTreeNode(node_for = [ CBClass ], label = 'name', view = source_view, icon_group = 'class', icon_open = 'class'), ObjectTreeNode(node_for = [ CBMethod ], label = 'name', view = source_view, icon_group = 'method', icon_open = 'method') ])
empty_view = View()
source_view = View([ 'text@', '|<>' ])
Displays a class browser.
| Local name | Refers to |
|---|---|
| abspath | os.path.abspath |
| Any | enthought.traits.trait_types.Any |
| Code | enthought.traits.trait_types.Code |
| Delegate | enthought.traits.trait_types.Delegate |
| dump | cPickle.dump |
| environ | os.environ |
| exists | os.path.exists |
| HasPrivateTraits | enthought.traits.has_traits.HasPrivateTraits |
| Instance | enthought.traits.trait_types.Instance |
| Int | enthought.traits.trait_types.Int |
| isdir | os.path.isdir |
| Item | enthought.traits.ui.item.Item |
| join | os.path.join |
| List | enthought.traits.trait_types.List |
| listdir | os.listdir |
| load | cPickle.load |
| ObjectTreeNode | enthought.traits.ui.tree_node.ObjectTreeNode |
| Property | enthought.traits.traits.Property |
| pyclbr | pyclbr |
| splitext | os.path.splitext |
| stat | os.stat |
| Str | enthought.traits.trait_types.Str |
| TreeEditor | enthought.traits.ui.editors.TreeEditor |
| TreeNode | enthought.traits.ui.tree_node.TreeNode |
| TreeNodeObject | enthought.traits.ui.tree_node.TreeNodeObject |
| true | enthought.traits.trait_types.true |
| View | enthought.traits.ui.view.View |
© Copyright 2002-2008 Enthought, Inc.