Inherits from
- ContentViewer: enthought.pyface.viewer.content_viewer.ContentViewer
Attributes
- column_provider
The column provider provides information about the columns in the table (column headers, width etc).
column_provider = Trait(TableColumnProvider(), Instance(TableColumnProvider))
- content_provider
The content provider provides the actual table data.
content_provider = Instance(TableContentProvider)
- even_row_background
The colours used to render odd and even numbered rows.
even_row_background = Color('white')
- FORMAT_MAP
FORMAT_MAP = { Const('left') : Getattr(Name('wx'), 'LIST_FORMAT_LEFT'), Const('right') : Getattr(Name('wx'), 'LIST_FORMAT_RIGHT'), Const('center') : Getattr(Name('wx'), 'LIST_FORMAT_CENTRE'), Const('centre') : Getattr(Name('wx'), 'LIST_FORMAT_CENTRE') } - label_provider
The label provider provides, err, the labels for the items in the table (a label can have text and/or an image).
label_provider = Instance(TableLabelProvider, factory = TableLabelProvider)
- odd_row_background
odd_row_background = Color((245, 245, 255))
- row_activated
A row has been activated.
row_activated = Event
- row_begin_drag
A drag operation was started on a node.
row_begin_drag = Event
- row_selected
A row has been selected.
row_selected = Event
Method summary
- __init__(self, parent, image_size = (16, 16), **traits)
- select_row(self, row)
Methods
- __init__(self, parent, image_size = (16, 16), **traits)
Creates a new table viewer.
'parent' is the toolkit-specific control that is the table's parent.
'image_size' is a tuple in the form (int width, int height) that specifies the size of the images (if any) displayed in the table.
- select_row(self, row)
Select the specified row.