lookatme.widgets.table module¶
Defines a basic Table widget for urwid
-
class
lookatme.widgets.table.
Table
(rows, headers=None, aligns=None)¶ Bases:
urwid.container.Pile
Create a table from a list of headers, alignment values, and rows.
-
calc_column_maxes
()¶
-
create_cells
(body_rows, modifier=None)¶ Create the rows for the body, optionally calling a modifier function on each created cell Text. The modifier must accept an urwid.Text object and must return an urwid.Text object.
-
render
(size, focus=False)¶ Do whatever needs to be done to render the table
-
set_column_maxes
()¶ Calculate and set the column maxes for this table
-
signals
= ['change']¶
-
watch
(w)¶ Watch the provided widget w for changes
-