use same order as qt for ok and cancel buttons
This commit is contained in:
@@ -251,12 +251,13 @@ def waiting_dialog(f):
|
|||||||
def ok_cancel_buttons(dialog):
|
def ok_cancel_buttons(dialog):
|
||||||
hbox = QHBoxLayout()
|
hbox = QHBoxLayout()
|
||||||
hbox.addStretch(1)
|
hbox.addStretch(1)
|
||||||
b = QPushButton("OK")
|
|
||||||
hbox.addWidget(b)
|
|
||||||
b.clicked.connect(dialog.accept)
|
|
||||||
b = QPushButton("Cancel")
|
b = QPushButton("Cancel")
|
||||||
hbox.addWidget(b)
|
hbox.addWidget(b)
|
||||||
b.clicked.connect(dialog.reject)
|
b.clicked.connect(dialog.reject)
|
||||||
|
b = QPushButton("OK")
|
||||||
|
hbox.addWidget(b)
|
||||||
|
b.clicked.connect(dialog.accept)
|
||||||
|
b.setDefault(True)
|
||||||
return hbox
|
return hbox
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user