Entry#

class ignis.widgets.Widget.Entry(*args: Any, **kwargs: Any)#

Bases: Gtk.Entry

An input field. To make it work, set the kb_mode property of the window to on_demand or exclusive.

Parameters:

**kwargs -- Properties to set.

Widget.Entry(
    placeholder="placeholder",
    on_accept=lambda x: print(x.text),
    on_change=lambda x: print(x.text),
)
gproperty on_accept: Callable#
  • read-write

The function that will be called when the user hits the Enter key.

gproperty on_change: Callable#
  • read-write

The function that will be called when the text in the widget is changed (e.g., when the user types something into the entry).