diff options
| author | tassaron | 2017-06-10 12:10:05 -0400 |
|---|---|---|
| committer | tassaron | 2017-06-10 12:10:05 -0400 |
| commit | b048312882f80d43e3d8b1573814badf70fe3b92 (patch) | |
| tree | 832c1af46c020d6184bd676596dccb8a584f104f /mainwindow.py | |
| parent | d3f979ef2461a3de701df0d5add545b80dfe23ad (diff) | |
close button works, dialogs properly parented
hint text wording changed by IamDH4's suggestion
Diffstat (limited to 'mainwindow.py')
| -rw-r--r-- | mainwindow.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mainwindow.py b/mainwindow.py index 45262f7..3e49ab2 100644 --- a/mainwindow.py +++ b/mainwindow.py @@ -601,7 +601,9 @@ class MainWindow(QtCore.QObject): print('project file missing value: %s' % e) def showMessage(self, **kwargs): - msg = QtGui.QMessageBox() + parent = kwargs['parent'] if 'parent' in kwargs else self.window + msg = QtGui.QMessageBox(parent) + msg.setModal(True) msg.setText(kwargs['msg']) msg.setIcon( kwargs['icon'] if 'icon' in kwargs else QtGui.QMessageBox.Information) |
