Inherits from
- HasTraits: enthought.traits.has_traits.HasTraits
Attributes
- column_count
The number of columns.
column_count = Int
Method summary
- get_alignment(self, viewer, column_index)
- get_label(self, viewer, column_index)
- get_width(self, viewer, column_index)
Methods
- get_alignment(self, viewer, column_index)
Returns the alignment of the column header and cells.
Returns, 'left', 'right', 'centre' or 'center' ('left' by default).
- get_label(self, viewer, column_index)
Returns the label for a column.
- get_width(self, viewer, column_index)
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).