- class cytoflowgui.workflow.workflow_item.WorkflowItem¶
Because we serialize instances of this, we have to pay careful attention to which traits are
transient(and aren’t serialized). Additionally, traits marked as
statusare only serialized remote –> local. For more details about the synchronization, see the module docstring for
The operation’s id
The operation’s name
The currently selected view
The default view for this workflow item (if any)
- edit_traits(view=None, parent=None, kind=None, context=None, handler=None, id='', scrollable=None, **args)¶
Override the base
traits.has_traits.HasTraits.edit_traitsto make it go looking for views in the handler.
- trait_view(name=None, view_element=None, handler=None)¶
Gets or sets a ViewElement associated with an object’s class.
If both name and view_element are specified, the view element is associated with name for the current object’s class. (That is, view_element is added to the ViewElements object associated with the current object’s class, indexed by name.)
If only name is specified, the function returns the view element object associated with name, or None if name has no associated view element. View elements retrieved by this function are those that are bound to a class attribute in the class definition, or that are associated with a name by a previous call to this method.
If neither name nor view_element is specified, the method returns a View object, based on the following order of preference:
If there is a View object named
traits_viewassociated with the current object, it is returned.
If there is exactly one View object associated the current object, it is returned.
Otherwise, it returns a View object containing items for all the non-event trait attributes on the current object.
name (str) – Name of a view element
view_element (ViewElement) – View element to associate
- Return type
A view element.