EBackend.UserPrompterServer¶
- Subclasses:
None
Methods¶
- Inherited:
EBackend.DBusServer (5), GObject.Object (37), EDataServer.Extensible (3)
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class EBackend.UserPrompterServer(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Contains only private data that should be read and manipulated using the functions below.
New in version 3.8.
- classmethod new()¶
- Returns:
a new instance of
EBackend.UserPrompterServer- Return type:
Creates a new instance of
EBackend.UserPrompterServer.New in version 3.8.
- register(extension, dialog_name)¶
- Parameters:
extension (
EDataServer.Extension) – anEBackend.UserPrompterServerExtensiondescendantdialog_name (
str) – name of a dialog, which the extensions implement
- Returns:
Whether properly registered extension
- Return type:
Registers extension as a provider of dialog_name dialog. The names are compared case sensitively and two extensions cannot provide the same dialog. If the function succeeds, then it adds its own reference on the extension.
Extensions providing multiple dialogs call this function multiple times, for each dialog name separately.
New in version 3.8.
- response(prompt_id, response, extension_values)¶
- Parameters:
prompt_id (
int) – Id of a prompt, which was respondedresponse (
int) – Response of the promptextension_values (
EDataServer.NamedParametersorNone) – For extension prompts can pass extra return values
Finishes prompt initiated by a “prompt” signal or an extension prompt. The response for non-extension prompts is a 0-based index of a button used to close the prompt.
The extension_values is ignored for non-extension prompts.
New in version 3.8.
Signal Details¶
- EBackend.UserPrompterServer.signals.prompt(user_prompter_server, prompt_id, type, title, primary_text, secondary_text, use_markup, button_captions)¶
- Signal Name:
prompt- Flags:
- Parameters:
user_prompter_server (
EBackend.UserPrompterServer) – The object which received the signalprompt_id (
int) – the id of the prompttitle (
strorNone) – window title of the prompt; can beNoneprimary_text (
strorNone) – primary text of the prompt; can beNonesecondary_text (
strorNone) – secondary text of the prompt; can beNoneuse_markup (
bool) – whether both texts are with markupbutton_captions ([
str] orNone) – captions of buttons to use in the message; can beNone