commit 8db55efff7cc4c25ac4a8f83d367398dc384e7f9
parent 0c2a02f0fc934d632449541c8a68ff7488412889
Author: ecdsa <ecdsa@github>
Date: Tue, 5 Mar 2013 06:35:34 +0100
use same order as qt for ok and cancel buttons
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/gui/gui_classic.py b/gui/gui_classic.py
@@ -251,12 +251,13 @@ def waiting_dialog(f):
def ok_cancel_buttons(dialog):
hbox = QHBoxLayout()
hbox.addStretch(1)
- b = QPushButton("OK")
- hbox.addWidget(b)
- b.clicked.connect(dialog.accept)
b = QPushButton("Cancel")
hbox.addWidget(b)
b.clicked.connect(dialog.reject)
+ b = QPushButton("OK")
+ hbox.addWidget(b)
+ b.clicked.connect(dialog.accept)
+ b.setDefault(True)
return hbox