@hook
def transaction_dialog_update(self, d):
    if (d.tx.is_complete() or d.wallet.can_sign(d.tx)):
        d.cosigner_send_button.hide()
        return
    for (window, xpub, K, _hash) in self.cosigner_list:
        if ((window.wallet == d.wallet) and self.cosigner_can_sign(d.tx, xpub)):
            d.cosigner_send_button.show()
            break
    else:
        d.cosigner_send_button.hide()
@hook
def transaction_dialog_update(self, d):
    if (d.tx.is_complete() or d.wallet.can_sign(d.tx)):
        d.cosigner_send_button.hide()
        return
    for (window, xpub, K, _hash) in self.cosigner_list:
        if ((window.wallet == d.wallet) and self.cosigner_can_sign(d.tx, xpub)):
            d.cosigner_send_button.show()
            break
    else:
        d.cosigner_send_button.hide()