Module Contents¶
Functions¶
|
Show a Gnome/GTK desktop dialog asking for a passphrase. |
- autobahn.xbr._dialog.get_input_from_dialog(reactor: twisted.internet.interfaces.IReactorProcess, title: str = 'Unlock key', text: str = 'Please enter passphrase to unlock key', hide_text: bool = True) twisted.internet.defer.Deferred [source]¶
Show a Gnome/GTK desktop dialog asking for a passphrase.
This is using zenity, the GNOME port of dialog which allows you to display dialog boxes from the commandline and shell scripts. To install (on Linux):
sudo apt update sudo install zenity
See also:
- Parameters
reactor – Twisted reactor to use.
title – Dialog window title to show.
text – Dialog text to show above text entry field.
hide_text – Hide entry field text.
- Returns
A deferred that resolves with the string the user entered.