AbstractWidget¶
-
class
visualife.widget.AbstractWidget(element_id)¶ Bases:
objectAbstract base class for VisuaLife widgets
Parameters: element_id – ID of a html DIV element that will contain this SequenceViewer instance Attributes Summary
element_idProvides ID of the page element that holds this widget (parent element) known_eventsProvides a list of all event names known to this widget Methods Summary
set_event_callback(event_name, callback_function)Attributes Documentation
-
element_id¶ Provides ID of the page element that holds this widget (parent element)
Returns: ID of the parent HTML element
-
known_events¶ Provides a list of all event names known to this widget
Returns: a deep copy (for safety) of names of all events this widget can handle
Methods Documentation
-
set_event_callback(event_name, callback_function)¶
-