pyface.viewer.column_provider module
Base class for all column providers.
-
class pyface.viewer.column_provider.ColumnProvider[source]
Bases: HasTraits
Base class for all column providers.
By default a column’s label is ‘Column n’ and is 100 pixels wide.
-
get_label(viewer, column_index)[source]
Returns the label for a column.
-
get_width(viewer, column_index)[source]
Returns the width of a column.
Returning -1 (the default) means that the column will be sized to
fit its longest item (or its column header if it is longer than any
item).
-
get_alignment(viewer, column_index)[source]
Returns the alignment of the column header and cells.
Returns, ‘left’, ‘right’, ‘centre’ or ‘center’ (‘left’ by default).