tmake ExceptionWindow inherit from MessageBoxMixin - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 45b03d930df44352558dc408168894967547c07b DIR parent 680df7d6b60ffcf66f6c47eb73697da1a8613405 HTML Author: SomberNight <somber.night@protonmail.com> Date: Sun, 18 Mar 2018 01:13:02 +0100 make ExceptionWindow inherit from MessageBoxMixin tthe stack trace from the report is now user selectable Diffstat: M gui/qt/exception_window.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) --- DIR diff --git a/gui/qt/exception_window.py b/gui/qt/exception_window.py t@@ -38,6 +38,8 @@ from PyQt5.QtWidgets import * from electrum.i18n import _ from electrum import ELECTRUM_VERSION, bitcoin, constants +from .util import MessageBoxMixin + issue_template = """<h2>Traceback</h2> <pre> {traceback} t@@ -54,7 +56,7 @@ issue_template = """<h2>Traceback</h2> report_server = "https://crashhub.electrum.org/crash" -class Exception_Window(QWidget): +class Exception_Window(QWidget, MessageBoxMixin): _active_window = None def __init__(self, main_window, exctype, value, tb): t@@ -75,7 +77,9 @@ class Exception_Window(QWidget): 'information:'))) collapse_info = QPushButton(_("Show report contents")) - collapse_info.clicked.connect(lambda: QMessageBox.about(self, "Report contents", self.get_report_string())) + collapse_info.clicked.connect( + lambda: self.msg_box(QMessageBox.NoIcon, + self, "Report contents", self.get_report_string())) main_box.addWidget(collapse_info) main_box.addWidget(QLabel(_("Please briefly describe what led to the error (optional):")))