Merge pull request #892 from Tafelpoot/whitespace_v2

removed trailing whitespace and fixed indentation in history widget
This commit is contained in:
ThomasV 2014-10-21 23:56:01 +02:00
commit 11fc93dc4a
35 changed files with 230 additions and 267 deletions

View file

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

View file

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

View file

@ -23,4 +23,3 @@ class HistoryWidget(QTreeWidget):
if float(amount) < 0: if float(amount) < 0:
item.setForeground(0, QBrush(QColor("#BC1E1E"))) item.setForeground(0, QBrush(QColor("#BC1E1E")))
self.insertTopLevelItem(0, item) self.insertTopLevelItem(0, item)

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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 # 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.network.trigger_callback("new_transaction")
self.was_updated = False self.was_updated = False

View file

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

View file

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