Inherits from
- HasPrivateTraits: enthought.traits.has_traits.HasPrivateTraits
Attributes
- auto_editable
Is the column automatically edited/viewed (i.e. should the column editor or popup be activated automatically on mouse over)?
auto_editable = Bool(False)
- cell_color
Cell background color for this column:
cell_color = Color('white')
- cell_theme
The theme used to render a column cell:
cell_theme = ATheme
- droppable
Can external objects be dropped on the column?
droppable = Bool(False)
- edit_height
The height of the column cell's row while it is being edited (< 0.0: Default, 0.0..1.0: fraction of total table height, > 1.0: absolute height in pixels):
edit_height = Float(-Const(1.0))
- edit_width
The width of the column while it is being edited (< 0.0: Default, 0.0..1.0: fraction of total table width, > 1.0: absolute width in pixels):
edit_width = Float(-Const(1.0))
- editable
Is this column editable?
editable = Bool(True)
- graph_color
Cell graph color:
graph_color = Color(14539212)
- horizontal_alignment
Horizontal alignment of text in the column:
horizontal_alignment = Enum('left', [ 'left', 'center', 'right' ])
- image
The image to display in the cell:
image = Image
- label
Column label to use for this column:
label = Str(UndefinedLabel)
- maximum
Optional maximum value a numeric cell value can have:
maximum = Float(trait_value = True)
- read_only_cell_color
Cell background color for non-editable columns:
read_only_cell_color = Color(16053230)
- renderer
Renderer used to render the contents of this column:
renderer = Any
- selected_theme
The theme used to render a selected column cell:
selected_theme = ATheme
- text_color
Text color for this column:
text_color = Color('black')
- text_font
Text font for this column:
text_font = Font
- themed_cell_renderer
The toolkit specific themed cell renderer:
themed_cell_renderer = Any
- tooltip
The tooltip to display when the mouse is over the column:
tooltip = Str
- type
Type of data contained by the column:
type = Enum('text')
- vertical_alignment
Vertical alignment of text in the column:
vertical_alignment = Enum('center', [ 'top', 'center', 'bottom' ])
- view
The view (if any) to display when clicking a non-editable cell:
view = AView
- visible
Is the table column visible (i.e., viewable)?
visible = Bool(True)
- width
The width of the column (< 0.0: Default, 0.0..1.0: fraction of total table width, > 1.0: absolute width in pixels):
width = Float(-Const(1.0))
Inherited from base classes
Method summary
- __str__(self)
- get_cell_color(self, object)
- get_cell_theme(self, object)
- get_edit_height(self, object)
- get_edit_width(self, object)
- get_graph_color(self, object)
- get_horizontal_alignment(self, object)
- get_image(self, object)
- get_label(self)
- get_maximum(self, object)
- get_menu(self, object)
- get_object(self, object)
- get_renderer(self, object)
- get_selected_theme(self, object)
- get_text_color(self, object)
- get_text_font(self, object)
- get_tooltip(self, object)
- get_type(self, object)
- get_vertical_alignment(self, object)
- get_view(self, object)
- get_width(self)
- is_auto_editable(self, object)
- is_droppable(self, object, value)
- is_editable(self, object)
- on_click(self, object)
- on_dclick(self, object)
Inherited from base classes
- __deepcopy__(self, memo)
- __getstate__(self)
- __prefix_trait__(self, name, is_set)
- __reduce_ex__(self, protocol)
- __setstate__(self, state, trait_change_notify = True)
- add_class_trait(cls, name, *trait)
- add_trait(self, name, *trait)
- add_trait_category(cls, category)
- add_trait_listener(self, object, prefix = '')
- all_trait_names(self)
- base_trait(self, name)
- class_default_traits_view(cls)
- class_editable_traits(cls)
- class_trait_names(cls, **metadata)
- class_trait_view(cls, name = None, view_element = None)
- class_trait_view_elements(cls)
- class_traits(cls, **metadata)
- clone_traits(self, traits = None, memo = None, copy = None, **metadata)
- configure_traits(self, filename = None, view = None, kind = None, edit = True, context = None, handler = None, id = '', scrollable = None, **args)
- copy_traits(self, other, traits = None, memo = None, copy = None, **metadata)
- copyable_trait_names(self, **metadata)
- default_traits_view(self)
- edit_traits(self, view = None, parent = None, kind = None, context = None, handler = None, id = '', scrollable = None, **args)
- editable_traits(self)
- has_traits_interface(self, *interfaces)
- on_trait_change(self, handler, name = None, remove = False, dispatch = 'same', priority = False, deferred = False)
- print_traits(self, show_help = False, **metadata)
- remove_trait(self, name)
- remove_trait_listener(self, object, prefix = '')
- reset_traits(self, traits = None, **metadata)
- set_trait_dispatch_handler(cls, name, klass, override = False)
- sync_trait(self, trait_name, object, alias = None, mutual = True, remove = False)
- trait(self, name, force = False, copy = False)
- trait_context(self)
- trait_get(self, *names, **metadata)
- trait_monitor(cls, handler, remove = False)
- trait_names(self, **metadata)
- trait_set(self, trait_change_notify = True, **traits)
- trait_setq(self, **traits)
- trait_subclasses(cls, all = False)
- trait_view(self, name = None, view_element = None)
- trait_view_elements(self)
- trait_views(self, klass = None)
- traits(self, **metadata)
- validate_trait(self, name, value)
Methods
- __str__(self)
Returns the string representation of the table column.
- get_cell_color(self, object)
Returns the cell background color for the column for a specified object.
- get_cell_theme(self, object)
Returns the cell theme for the column for a specified object.
- get_edit_height(self, object)
Returns the height of the column cell's row while it is being edited.
- get_edit_width(self, object)
Returns the edit width of the column.
- get_graph_color(self, object)
Returns the cell background graph color for the column for a specified object.
- get_horizontal_alignment(self, object)
Returns the horizontal alignment for the column for a specified object.
- get_image(self, object)
Returns the image to display for the column for a specified object.
- get_label(self)
Gets the label of the column.
- get_maximum(self, object)
Returns the maximum value a numeric column can have.
- get_object(self, object)
Returns the actual object being edited.
- get_renderer(self, object)
Returns the renderer for the column of a specified object.
- get_selected_theme(self, object)
Returns the selected cell theme for the column for a specified object.
- get_text_color(self, object)
Returns the text color for the column for a specified object.
- get_text_font(self, object)
Returns the text font for the column for a specified object.
- get_tooltip(self, object)
Returns the tooltip to display when the user mouses over the column for a specified object.
- get_type(self, object)
Gets the type of data for the column for a specified object.
- get_vertical_alignment(self, object)
Returns the vertical alignment for the column for a specified object.
- get_view(self, object)
Returns the view to display when clicking a non-editable cell.
- get_width(self)
Returns the width of the column.
- is_auto_editable(self, object)
Returns whether the column is automatically edited/viewed for a specified object.
- is_droppable(self, object, value)
Returns whether a specified value is valid for dropping on the column for a specified object.
- is_editable(self, object)
Returns whether the column is editable for a specified object.
- on_click(self, object)
Called when the user clicks on the column.
- on_dclick(self, object)
Called when the user clicks on the column.