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

../_images/textinput_button.png

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 input

  • on_change (Callable[[str], None]) – callback for the value of the text input changes. The callback is passed the changed value of the text

  • on_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.