示例#1
0
 def show_qr(self):
     text = bfh(str(self.tx))
     text = base_encode(text, base=43)
     try:
         self.main_window.show_qrcode(text, 'Transaction', parent=self)
     except Exception as e:
         self.show_message(str(e))
示例#2
0
 def show_qr(self):
     from electrum_nmc.bitcoin import base_encode, bfh
     raw_tx = str(self.tx)
     text = bfh(raw_tx)
     text = base_encode(text, base=43)
     self.app.qr_dialog(_("Raw Transaction"),
                        text,
                        text_for_clipboard=raw_tx)
示例#3
0
 def show_qr(self):
     text = bfh(str(self.tx))
     text = base_encode(text, base=43)
     try:
         self.main_window.show_qrcode(text, 'Transaction', parent=self)
     except qrcode.exceptions.DataOverflowError:
         self.show_error(_('Failed to display QR code.') + '\n' +
                         _('Transaction is too large in size.'))
     except Exception as e:
         self.show_error(_('Failed to display QR code.') + '\n' + str(e))
示例#4
0
 def show_qr(self):
     from electrum_nmc.bitcoin import base_encode, bfh
     text = bfh(str(self.tx))
     text = base_encode(text, base=43)
     self.app.qr_dialog(_("Raw Transaction"), text)