1.1.2.6. entry

1.1.2.6.1. Classes

class TextEntryDialog(*args, **kwargs)[source]

Bases: GladeGObject

Display a Gtk.Dialog with a text entry suitable for prompting users for text input. If the user confirms the action, the text within the entry is returned. If the user cancels the action or closes the dialog, None is returned.

__init__(*args, **kwargs)[source]
Parameters

application (Gtk.Application) – The parent application for this object.

classmethod build_prompt(application, title, label_text, entry_text=None, entry_tooltip_text=None)[source]

Create a TextEntryDialog instance configured with the specified text prompts.

Parameters
  • application (Gtk.Application) – The parent application for this object.

  • title (str) – The title to set for the dialog window.

  • label_text (str) – The text to display in the entry’s label.

  • entry_text (str) – Text to place in the entry.

  • entry_tooltip_text (str) – Text to display in the tool tip of the entry.

Returns

If the prompt is submitted by the user, the text within the entry is returned.

Return type

str

dependencies = <GladeDependencies name='TextEntryDialog' >[source]

A GladeDependencies instance which defines information for loading the widget from the GTK builder data.

top_gobject = 'dialog'[source]

The name of the attribute to set a reference of the top level GObject to.