1
0

Make line_dialog, text_dialog window modal

Move new_wallet and get_wallet_folder from qt/__init__.py
to qt/main_window.py for correct centring and window modality.
This commit is contained in:
Neil Booth
2015-12-22 07:55:33 +09:00
parent 8598f9ef9c
commit 44a436e964
4 changed files with 31 additions and 35 deletions

View File

@@ -202,10 +202,8 @@ class WindowModalDialog(QDialog):
self.setWindowTitle(title)
def line_dialog(parent, title, label, ok_label, default=None):
dialog = QDialog(parent)
dialog = WindowModalDialog(parent, title)
dialog.setMinimumWidth(500)
dialog.setWindowTitle(title)
dialog.setModal(1)
l = QVBoxLayout()
dialog.setLayout(l)
l.addWidget(QLabel(label))
@@ -219,10 +217,8 @@ def line_dialog(parent, title, label, ok_label, default=None):
def text_dialog(parent, title, label, ok_label, default=None):
from qrtextedit import ScanQRTextEdit
dialog = QDialog(parent)
dialog = WindowModalDialog(parent, title)
dialog.setMinimumWidth(500)
dialog.setWindowTitle(title)
dialog.setModal(1)
l = QVBoxLayout()
dialog.setLayout(l)
l.addWidget(QLabel(label))