

def ok_cancel_buttons(dialog, ok_label=_('OK')):
    hbox = QHBoxLayout()
    hbox.addStretch(1)
    b = QPushButton(_('Cancel'))
    hbox.addWidget(b)
    b.clicked.connect(dialog.reject)
    b = QPushButton(ok_label)
    hbox.addWidget(b)
    b.clicked.connect(dialog.accept)
    b.setDefault(True)
    return hbox

dataset/ETHPy150Open bitxbay/BitXBay/electru/build/lib/electrum_gui/qt/util.py ok_cancel_buttons/original