traitsui.table_column module¶
Defines the table column descriptor used by the editor and editor factory classes for numeric and table editors.
-
class
traitsui.table_column.
ExpressionColumn
¶ Bases:
traitsui.table_column.ObjectColumn
A column for displaying computed values.
-
get_raw_value
(object)¶ Gets the unformatted value of the column for a specified object.
-
-
class
traitsui.table_column.
ListColumn
¶ Bases:
traitsui.table_column.TableColumn
A column for editing lists.
-
get_editor
(object)¶ Gets the editor for the column of a specified object.
-
get_value
(object)¶ Gets the value of the column for a specified object.
-
key
(object)¶ Returns the value to use for sorting.
-
set_value
(object, value)¶ Sets the value of the column for a specified object.
-
-
class
traitsui.table_column.
NumericColumn
¶ Bases:
traitsui.table_column.ObjectColumn
A column for editing Numeric arrays.
-
get_cell_color
(object)¶ Returns the cell background color for the column for a specified object row.
-
get_data_column
(object)¶ Gets the entire contents of the specified object column.
-
get_editor
(object)¶ Gets the editor for the column of a specified object row.
-
get_horizontal_alignment
(object)¶ Returns the horizontal alignment for the column for a specified object row.
Returns the context menu to display when the user right-clicks on the column for a specified object row.
-
get_text_color
(object)¶ Returns the text color for the column for a specified object row.
-
get_text_font
(object)¶ Returns the text font for the column for a specified object row.
-
get_type
(object)¶ Gets the type of data for the column for a specified object row.
-
get_value
(object)¶ Gets the value of the column for a specified object row.
-
get_vertical_alignment
(object)¶ Returns the vertical alignment for the column for a specified object row.
-
is_droppable
(object, row, value)¶ Returns whether a specified value is valid for dropping on the column for a specified object row.
-
is_editable
(object)¶ Returns whether the column is editable for a specified object row.
-
set_value
(object, row, value)¶ Sets the value of the column for a specified object row.
-
-
class
traitsui.table_column.
ObjectColumn
¶ Bases:
traitsui.table_column.TableColumn
A column for editing objects.
-
get_drag_value
(object)¶ Returns the drag value for the column.
-
get_editor
(object)¶ Gets the editor for the column of a specified object.
-
get_raw_value
(object)¶ Gets the unformatted value of the column for a specified object.
-
get_style
(object)¶ Gets the editor style for the column of a specified object.
-
get_value
(object)¶ Gets the formatted value of the column for a specified object.
-
is_droppable
(object, value)¶ Returns whether a specified value is valid for dropping on the column for a specified object.
-
key
(object)¶ Returns the value to use for sorting.
-
set_value
(object, value)¶ Sets the value of the column for a specified object.
-
target_name
(object)¶ Returns the target object and name for the column.
-
-
class
traitsui.table_column.
TableColumn
¶ Bases:
traits.has_traits.HasPrivateTraits
Represents a column in a table editor.
-
cmp
(object1, object2)¶ Returns the result of comparing the column of two different objects.
This is deprecated.
-
get_cell_color
(object)¶ Returns the cell background color for the column for a specified object.
-
get_edit_height
(object)¶ Returns the height of the column cell’s row while it is being edited.
-
get_edit_width
(object)¶ Returns the edit width of the column.
-
get_graph_color
(object)¶ Returns the cell background graph color for the column for a specified object.
-
get_horizontal_alignment
(object)¶ Returns the horizontal alignment for the column for a specified object.
-
get_image
(object)¶ Returns the image to display for the column for a specified object.
-
get_label
()¶ Gets the label of the column.
-
get_maximum
(object)¶ Returns the maximum value a numeric column can have.
Returns the context menu to display when the user right-clicks on the column for a specified object.
-
get_object
(object)¶ Returns the actual object being edited.
-
get_renderer
(object)¶ Returns the renderer for the column of a specified object.
-
get_text_color
(object)¶ Returns the text color for the column for a specified object.
-
get_text_font
(object)¶ Returns the text font for the column for a specified object.
-
get_tooltip
(object)¶ Returns the tooltip to display when the user mouses over the column for a specified object.
-
get_type
(object)¶ Gets the type of data for the column for a specified object.
-
get_vertical_alignment
(object)¶ Returns the vertical alignment for the column for a specified object.
-
get_view
(object)¶ Returns the view to display when clicking a non-editable cell.
-
get_width
()¶ Returns the width of the column.
-
is_auto_editable
(object)¶ Returns whether the column is automatically edited/viewed for a specified object.
-
is_droppable
(object, value)¶ Returns whether a specified value is valid for dropping on the column for a specified object.
-
is_editable
(object)¶ Returns whether the column is editable for a specified object.
-
on_click
(object)¶ Called when the user clicks on the column.
-
on_dclick
(object)¶ Called when the user clicks on the column.
-