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"
.- Properies:
on_accept (
Callable
, optional, read-write): The function that will be called when the user hits the Enter key.on_change (
Callable
, optional, 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).
Widget.Entry( placeholder="placeholder", on_accept=lambda x: print(x.text), on_change=lambda x: print(x.text), )