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.QtWidgetComponent
Basic widget for a one line text input
- 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
children
The children of this component.
props
The props of this component.