edifice.TextInput¶
-
class
edifice.TextInput(text='', on_change=<function TextInput.<lambda>>, on_edit_finish=<function TextInput.<lambda>>, completer=None, **kwargs)[source]¶ Bases:
edifice.base_components.QtWidgetComponentBasic widget for a one line text input
TextInput on the left. Note that you can set an optional Completer, giving the dropdown for completion.¶
- Parameters
text (
Any) – Initial text of the text inputon_change (
Callable[[str],None]) – callback for the value of the text input changes. The callback is passed the changed value of the texton_edit_finish (
Callable[[],None]) –completer (
Optional[Completer]) –
Methods
set_completer(completer)set_on_change(on_change)set_on_edit_finish(on_edit_finish)Attributes
childrenThe children of this component.
propsThe props of this component.