def _show_qr(self) -> None: if self.tx.is_complete(): text = base_encode(self.tx.to_bytes(), base=43) else: data = self._tx_to_text().encode() data = gzip.compress(data) text = base_encode(data, base=43) try: self._main_window.show_qrcode(text, 'Transaction', parent=self) except Exception as e: self.show_message(str(e))
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))
def show_qr(self) -> None: text = base_encode(self.tx.to_bytes(), base=43) try: self._main_window.show_qrcode(text, 'Transaction', parent=self) except Exception as e: self.show_message(str(e))