changed: -<table border="0" width="95%" cellspacing="16"> <table border="0" width="95%" cellspacing="16"> added: ---- Some of the more useful methods for **dTreeView**: <table border="0" width="95%" cellspacing="16"> <tr> <td>**_clear()_** - (None): Removes all nodes from the tree.</td> </tr> <tr> <td>**_getRoodNode()_** - (dNode): Returns the root node for the tree.</td> </tr> <tr> <td>**_appendNode(parentNode, text)_** - (dNode): Appends a child node with the given text to the specified parent node.</td> </tr> <tr> <td>**_removeNode(node)_** - (None): Removes the specified node.</td> </tr> <tr> <td>**_expand(node)_** - (None): Expands the specified node.</td> </tr> <tr> <td>**_collapse(node)_** - (None): Collapses the specified node.</td> </tr> <tr> <td>**_expandAll()_** - (None): Expands all nodes.</td> </tr> <tr> <td>**_collapseAll()_** - (None): Collapses all nodes.</td> </tr> <tr> <td>**_showNode(node)_** - (None): Ensures that the given node is visible. If it is contained in collapsed parents, those parents are expanded to make this node visible.</td> </tr> <tr> <td>**_addImage(img, key)_** - (None): Adds the specified image to the tree's image list. The optional key can be used to later retrieve the image; otherwise, it is retrieved by position in the list.</td> </tr> <tr> <td>**_setNodeImg(node, key, state="normal")_** - (None): Sets the specified node's image to the image corresponding to the specified key for a given state. May also optionally pass the index of the image in the image list rather than the key. Valid states are: "normal", "expanded", "selected", and "selectedexpanded""</td> </tr> <tr> <td>**_nodeForObject(obj)_** - (dNode): Given an object, returns the node whose 'Object' property matches, or None if no nodes match.</td> </tr> <tr> <td>**_getParentNode(node)_** - (dNode): Given a node, returns its parent.</td> </tr> <tr> <td>**_getChildren(node)_** - (list): Given a node, returns all its child nodes.</td> </tr> <tr> <td>**_getDescendents(node)_** - (list): Given a node, returns all its child nodes, along with their children, etc.</td> </tr> <tr> <td>**_getSiblings(node)_** - (list): Given a node, returns a list of all its siblilng nodes.</td> </tr> <tr> <td>**_nextSibling(node)_** - (dNode): Given a node, returns the next sibling node, or None if it has no higher siblings.</td> </tr> <tr> <td>**_priorSibling(node)_** - (dNode): Given a node, returns the prior sibling node, or None if it has no lower siblings.</td> </tr> <tr> <td>**_nextNode(node)_** - (dNode): Given a node, returns the first child node if the current node has children. If it has no children, returns the next sibling. If there are no next siblings, returns the next sibling of the parent node. If the parent node has no more siblings, returns the next sibling of the grandparent node, etc. Returns None if we are at the absolute bottom of the flattened tree structure. Sometimes referred to as 'flatdown' navigation.</td> </tr> <tr> <td>**_priorNode(node)_** - (dNode): Given a node, returns the last child of its prior sibling node. If there are no prior siblings, returns the parent. Sometimes referred to as 'flatup' navigation.</td> </tr> <tr> <td>**_find(searchVal, top=None)_** - (list): Searches the nodes collection for all nodes that match whose text matches the passed search value (if a text value was passed). If a wxPython TreeItemID object is passed, returns a list nodes matching that itemID value. If a specific node is passed in the top property, the search is limited to descendents of that node.</td> </tr> <tr> <td>**_findPattern(searchPattern, top=None)_** - (list): Allows for regexp pattern matching in order to find matching nodes using less-than-exact matches. If a specific node is passed in the top property, the search is limited to descendents of that node.</td> </tr> <tr> <td>**_treeFromStructure(stru, topNode=None)_** - (None): Given a list of nested lists in the format [nodeText, [list of childnodes]], constructs the appropriate tree. If topNode is given, the tree starts at that node; otherwise, it clears the tree and builds the structure from the root node.</td> </tr> <tr> <td>**_makeDirTree(dirPath, wildcard=None, showHidden=False)_** - (None): Given a path, constructs a tree that reflects the directory structure. Options are to specify a wildcard, which will only display matching file names, and whether or not to show hidden files.</td> </tr> </table> added: **Note**: dNode objects have all the normal font and formatting properties: **!BackColor**, **Font**, **!FontBold**, **!FontDescription**, **!FontFace**, **!FontInfo**, **!FontItalic**, **!FontSize**, **!FontUnderline**, **!ForeColor**