lookatme.widgets.table module

Defines a basic Table widget for urwid

class lookatme.widgets.table.Table(rows, headers=None, aligns=None)[source]

Bases: urwid.container.Pile

Create a table from a list of headers, alignment values, and rows.

create_cells(body_rows, modifier=None)[source]

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)[source]

Do whatever needs to be done to render the table


Calculate and set the column maxes for this table

signals = ['change']

Watch the provided widget w for changes