tgui: proper dialog for private keys (fixes issue #500) - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 7ab4db0d232cd55da0076778c621a0dddfed036a DIR parent 89d42292075d867eadedd1b19993299c5b0eb596 HTML Author: thomasv <thomasv@gitorious> Date: Mon, 16 Dec 2013 15:40:24 +0100 gui: proper dialog for private keys (fixes issue #500) Diffstat: M gui/qt/main_window.py | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) --- DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py t@@ -1694,7 +1694,20 @@ class ElectrumWindow(QMainWindow): except Exception as e: self.show_message(str(e)) return - QMessageBox.information(self, _('Private key'), _('Address')+ ': ' + address + '\n\n' + _('Private key') + ': ' + '\n'.join(pk_list), _('OK')) + + d = QDialog(self) + d.setMinimumSize(600, 200) + d.setModal(1) + vbox = QVBoxLayout() + vbox.addWidget( QLabel(_("Address") + ': ' + address)) + vbox.addWidget( QLabel(_("Private key") + ':')) + keys = QTextEdit() + keys.setReadOnly(True) + keys.setText('\n'.join(pk_list)) + vbox.addWidget(keys) + vbox.addLayout(close_button(d)) + d.setLayout(vbox) + d.exec_() @protected