NumericInputMapper¶
- class spectacoular.factory.NumericInputMapper(obj, traitname)¶
Bases:
TraitWidgetMapper
Factory that creates
NumericInput
widget from a class trait attribute of type Int.- create_widget(**kwargs)¶
creates a Bokeh NumericInput instance
- Parameters:
- **kwargsargs of NumericInput
additional arguments of NumericInput widget.
- Returns:
- instance(NumericInput).
- set_widget(widget)¶
connects a Bokeh NumericInput widget instance to a class trait attribute
- Parameters:
- widgetinstance(NumericInput)
instance of a NumericInput widget.
- Returns:
- None.
- create_trait_setter_func()¶
creates a function that sets the value of a trait on the widget value.
The function is evoked every time the widget value changes. No casting necessary for NumericInput widgets
- Returns:
- callable.