Browse Source

fix indent

283
ThomasV 12 years ago
parent
commit
034bc64fe6
  1. 12
      gui/qrcodewidget.py
  2. 5
      plugins/qrscanner.py

12
gui/qrcodewidget.py

@ -18,12 +18,12 @@ class QRCodeWidget(QWidget):
def set_addr(self, addr):
if self.addr != addr:
if len(addr) < 128:
MinSize = 210
else:
MinSize = 500
self.setMinimumSize(MinSize, MinSize)
self.addr = addr
if len(addr) < 128:
MinSize = 210
else:
MinSize = 500
self.setMinimumSize(MinSize, MinSize)
self.addr = addr
self.qr = None
self.update()

5
plugins/qrscanner.py

@ -215,9 +215,8 @@ class Plugin(BasePlugin):
def sign_raw_transaction(self, tx, input_info, dialog ="", password = ""):
try:
self.gui.wallet.signrawtransaction(tx, input_info, [], password)
txtext = json.dumps(tx.as_dict()).replace(' ', '')
self.show_tx_qrcode(txtext, 'Signed Transaction')
txtext = json.dumps(tx.as_dict()).replace(' ', '')
self.show_tx_qrcode(txtext, 'Signed Transaction')
except BaseException, e:
self.gui.show_message(str(e))

Loading…
Cancel
Save