Configurator
|
A specialization of tree widget TreeItem class. More...
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 |
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.
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.
|
static |
Shared_Tree_Item: This method is overriden to deal with when *self* is selected.
|
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*.
|
static |
Shared_Tree_Item: Return *True* if *self* can be expanded to show items nested below and *False* otherwise.
|
static |