Skip to content

Commit

Permalink
enable word wrap for the QLabel in the custom excepthook
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed May 23, 2020
1 parent 86ce655 commit 59d3072
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions msl/qt/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def __init__(self):
self.icon_label.setPixmap(critical_icon.pixmap(largest_size))

self.error_label = QtWidgets.QLabel(value.__class__.__name__ + ':\n\n' + str(value))
self.error_label.setWordWrap(True)

self.ok_button = QtWidgets.QPushButton('Close')
self.ok_button.clicked.connect(self.close)
Expand Down

0 comments on commit 59d3072

Please sign in to comment.