Browse Source

Merge pull request #892 from Tafelpoot/whitespace_v2

removed trailing whitespace and fixed indentation in history widget
283
ThomasV 10 years ago
parent
commit
11fc93dc4a
  1. 2
      gui/qt/__init__.py
  2. 1
      gui/qt/amountedit.py
  3. 9
      gui/qt/history_widget.py
  4. 1
      gui/qt/lite_window.py
  5. 4
      gui/qt/password_dialog.py
  6. 1
      gui/qt/paytoedit.py
  7. 1
      gui/qt/qrcodewidget.py
  8. 4
      gui/qt/qrwindow.py
  9. 4
      gui/qt/transaction_dialog.py
  10. 2
      gui/qt/version_getter.py
  11. 4
      lib/account.py
  12. 1
      lib/blockchain.py
  13. 1
      lib/bmp.py
  14. 2
      lib/network.py
  15. 1
      lib/network_proxy.py
  16. 1
      lib/paymentrequest.py
  17. 1
      lib/plugins.py
  18. 1
      lib/synchronizer.py
  19. 3
      lib/transaction.py
  20. 1
      lib/util.py

2
gui/qt/__init__.py

@ -221,5 +221,3 @@ class ElectrumGui:
self.app.sendEvent(self.app.clipboard(), event)
w.close_wallet()

1
gui/qt/amountedit.py

@ -96,4 +96,3 @@ class BTCAmountEdit(AmountEdit):
p = pow(10, self.decimal_point())
x = amount / Decimal(p)
self.setText(str(x))

9
gui/qt/history_widget.py

@ -14,13 +14,12 @@ class HistoryWidget(QTreeWidget):
def append(self, address, amount, date):
if address is None:
address = _("Unknown")
address = _("Unknown")
if amount is None:
amount = _("Unknown")
amount = _("Unknown")
if date is None:
date = _("Unknown")
date = _("Unknown")
item = QTreeWidgetItem([amount, address, date])
if float(amount) < 0:
item.setForeground(0, QBrush(QColor("#BC1E1E")))
item.setForeground(0, QBrush(QColor("#BC1E1E")))
self.insertTopLevelItem(0, item)

1
gui/qt/lite_window.py

@ -872,4 +872,3 @@ if __name__ == "__main__":
app.setStyleSheet(style_file.read())
mini = MiniWindow()
sys.exit(app.exec_())

4
gui/qt/password_dialog.py

@ -173,7 +173,3 @@ class PasswordDialog(QDialog):
QMessageBox.information(self.parent, _('Success'), _('Password was updated successfully'), _('OK'))
else:
QMessageBox.information(self.parent, _('Success'), _('This wallet is not encrypted'), _('OK'))

1
gui/qt/paytoedit.py

@ -235,4 +235,3 @@ class PayToEdit(QRTextEdit):
cr = self.cursorRect()
cr.setWidth(self.c.popup().sizeHintForColumn(0) + self.c.popup().verticalScrollBar().sizeHint().width())
self.c.complete(cr)

1
gui/qt/qrcodewidget.py

@ -132,4 +132,3 @@ class QRDialog(QDialog):
vbox.addLayout(hbox)
d.setLayout(vbox)

4
gui/qt/qrwindow.py

@ -84,7 +84,3 @@ class QR_Window(QWidget):
label_text = "<span style='font-size: 21pt'>%s</span>" % message if message else ""
self.label_label.setText(label_text)
self.qrw.setData(url)

4
gui/qt/transaction_dialog.py

@ -223,7 +223,3 @@ class TxDialog(QDialog):
def show_message(self, msg):
QMessageBox.information(self, _('Message'), msg, _('OK'))

2
gui/qt/version_getter.py

@ -119,5 +119,3 @@ class UpdateLabel(QLabel):
self.dialog = dialog
if not dialog.exec_(): return

4
lib/account.py

@ -417,7 +417,3 @@ class BIP32_Account_2of3(BIP32_Account_2of2):
def get_type(self):
return _('Multisig 2 of 3')

1
lib/blockchain.py

@ -357,4 +357,3 @@ class Blockchain(threading.Thread):
return False
return True

1
lib/bmp.py

@ -219,4 +219,3 @@ if __name__ == "__main__":
bmp.plotPoint( 5, 5 )
bmp.plotPoint( 0, 0 )
bmp.saveFile( "test.bmp" )

2
lib/network.py

@ -484,5 +484,3 @@ class Network(threading.Thread):
def get_local_height(self):
return self.blockchain.height()

1
lib/network_proxy.py

@ -230,4 +230,3 @@ class NetworkProxy(threading.Thread):
callbacks = self.callbacks.get(event,[])[:]
if callbacks:
[callback() for callback in callbacks]

1
lib/paymentrequest.py

@ -352,4 +352,3 @@ if __name__ == "__main__":
tx = "blah"
pr.send_ack(tx, refund_addr = "1vXAXUnGitimzinpXrqDWVU4tyAAQ34RA")

1
lib/plugins.py

@ -109,4 +109,3 @@ class BasePlugin:
def settings_dialog(self):
pass

1
lib/synchronizer.py

@ -194,4 +194,3 @@ class WalletSynchronizer(threading.Thread):
# Updated gets called too many times from other places as well; if we use that signal we get the notification three times
self.network.trigger_callback("new_transaction")
self.was_updated = False

3
lib/transaction.py

@ -900,6 +900,3 @@ class Transaction:
priority = sum / size
print_error(priority, threshold)
return priority < threshold

1
lib/util.py

@ -352,4 +352,3 @@ class QueuePipe:
def send_all(self, requests):
for request in requests:
self.send(request)

Loading…
Cancel
Save