matplotlib.widgets.TextBox
- class matplotlib.widgets.TextBox(ax, label, initial='', *, color='.95', hovercolor='1', label_pad=0.01, textalignment=
Bases: AxesWidget
A GUI neutral text input box.
For the text box to remain responsive you must keep a reference to it.
Call on_text_change to be updated whenever the text changes.
Call on_submit to be updated whenever the user hits enter or
leaves the text entry field.
Remove the observer with connection id cid.
When the user hits enter or leaves the submission box, call this func with event.
A connection id is returned which can be used to disconnect.
When the text changes, call this func with event.
A connection id is returned which can be used to disconnect.
matplotlib.widgets.TextBoxThe color of the box.
The color of the box when the mouse is over it.
The distance between the label and the right side of the textbox.
The horizontal location of the text.