Configurator
Public Member Functions | List of all members
configurator.Shared_Tree_Item Class Reference

A specialization of tree widget TreeItem class. More...

Inheritance diagram for configurator.Shared_Tree_Item:
TreeWidget.TreeItem

Public Member Functions

def __init__
 
def GetText
 
def IsEditable
 
def SetText
 
def GetIconName
 
def IsExpandable
 
def GetSubList
 
def OnSelect
 
- Public Member Functions inherited from TreeWidget.TreeItem
def __init__
 
def delete
 
def prepend
 
def append
 
def child_append
 
def GetText
 
def GetLabelText
 
def IsExpandable
 
def IsEditable
 
def SetText
 
def GetIconName
 
def GetSelectedIconName
 
def GetSubList
 
def OnSelect
 
def OnDoubleClick
 

Detailed Description

A specialization of tree widget TreeItem class.

The tree widget package was originally taken from the tree widget package that came with the Python Idle programming environment. In retrospect, it would probably be better to start from scratch. There is a great deal of ugly code that surrounds the code that takes care of tree widget.

The correct way is to modify Node so that it captures just the information needed to draw the tree. This includes whether the node is expanded, expandable, its icon name, and text label. Upon a tree change, the entire tree should simply be redrawn.

Member Function Documentation

def configurator.Shared_Tree_Item.GetIconName (   self)
Shared_Tree_Item: Replace the label of *self* with *label*. 
def configurator.Shared_Tree_Item.GetText (   self)
Shared_Tree_Item: Initialize *self* to contain *label*,
*node*, *application* and *project_mode*.  *label* is
the text to be displayed by the tree widget.  *node*
is the associated *Node* object.  *application* is the
top level application which is used to keep track of
the most recently selected *Shared_Tree_Item*.  If
*project_mode* is *True*, *self* is in the project tree;
otherwise it is in the selections tree. 
def configurator.Shared_Tree_Item.IsEditable (   self)
Shared_Tree_Item: Return the text label to be displayed
for *self*. 
def configurator.Shared_Tree_Item.IsExpandable (   self)
Shared_Tree_Item: Return the name of the icon to display
for *self* in the tree widget window.  
def configurator.Shared_Tree_Item.SetText (   self,
  label 
)
Shared_Tree_Item: Returns *True* if *self* is allowed to
be edited. 

Member Data Documentation

configurator.Shared_Tree_Item.application self.application
static
Shared_Tree_Item: This method is overriden to deal with
when *self* is selected. 
configurator.Shared_Tree_Item.project_mode self.project_mode
static
Shared_Tree_Item: Return a list of *Shared_Tree_Item*
objects that correspond to the items to be displayed on the
widget under *self*.  
configurator.Shared_Tree_Item.sub_nodes self.node.sub_nodes
static
Shared_Tree_Item: Return *True* if *self* can be expanded
to show items nested below and *False* otherwise.  
tuple configurator.Shared_Tree_Item.tree_item
static
Initial value:
1 Shared_Tree_Item(sub_node.name,
2  sub_node, self.application, project_mode)

The documentation for this class was generated from the following file: