SpectAcoular documentation

TextInputMapper

«  ToggleMapper   ::   factory   ::   SelectMapper  »

TextInputMapper

class spectacoular.factory.TextInputMapper(obj, traitname)

Bases: TraitWidgetMapper

Factory that creates TextInput widget from a class trait attribute.

create_widget(**kwargs)

creates a Bokeh TextInput instance

Parameters:
**kwargsargs of TextInput

additional arguments of TextInput widget.

Returns:
instance(TextInput).
set_widget(widget)

connects a Bokeh TextInput widget instance to a class trait attribute

Parameters:
widgetinstance(TextInput)

instance of a TextInput widget.

Returns:
None.

«  ToggleMapper   ::   factory   ::   SelectMapper  »