Python urwid.TreeWidget() Examples

The following are 4 code examples of urwid.TreeWidget(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module urwid , or try the search function .
Example #1
Source File: viewer.py    From profiling with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def __init__(self, node):
        urwid.TreeWidget.__init__(self, node) 
Example #2
Source File: server_tree.py    From Discurses with MIT License 5 votes vote down vote up
def keypress(self, size, key):
        return urwid.TreeWidget.keypress(self, size, key) 
Example #3
Source File: server_tree.py    From Discurses with MIT License 5 votes vote down vote up
def expand(self):
        urwid.TreeWidget.keypress(self, (0, 0), "+") 
Example #4
Source File: server_tree.py    From Discurses with MIT License 5 votes vote down vote up
def collapse(self):
        urwid.TreeWidget.keypress(self, (0, 0), "-")