mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 09:21:39 +00:00
use same order as qt for ok and cancel buttons
This commit is contained in:
parent
0c2a02f0fc
commit
8db55efff7
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue