Table of Contents

Class: HelpTree PmwContribD-r2_0_1/HelpTree.py

A data structure to hold help text for a GUI application.

Base Classes   
NavigableTree.NavigableTree
Methods   
format_text
insert_node
  format_text 
format_text ( self,  input_text )

Fix up the text so it can be displayed.

Remove the first whitespace character from the input text, since it probably comes from code that was indented.

  insert_node 
insert_node (
        self,
        node_path,
        help_text='',
        )

Insert a help text node into the tree.

The new node is returned.

Arguments

node_path

A string with node names separated by the nodePathSep value for the class. The path is assumed to start at the current node, so the name of the current node should not be inserted into the beginning of the path.

help_text

A string which should be displayed as the help string for the node.


Table of Contents

This document was automatically generated on Mon Sep 17 17:47:46 2001 by HappyDoc version r2_0