mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
removed trailing whitespace and fixed indentation in history widget
This commit is contained in:
parent
49c0a3a08f
commit
d9c5250a6f
35 changed files with 230 additions and 267 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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))
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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_())
|
||||||
|
|
||||||
|
|
|
@ -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'))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -132,4 +132,3 @@ class QRDialog(QDialog):
|
||||||
|
|
||||||
vbox.addLayout(hbox)
|
vbox.addLayout(hbox)
|
||||||
d.setLayout(vbox)
|
d.setLayout(vbox)
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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'))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -119,5 +119,3 @@ class UpdateLabel(QLabel):
|
||||||
self.dialog = dialog
|
self.dialog = dialog
|
||||||
|
|
||||||
if not dialog.exec_(): return
|
if not dialog.exec_(): return
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -357,4 +357,3 @@ class Blockchain(threading.Thread):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
|
@ -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" )
|
||||||
|
|
||||||
|
|
|
@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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]
|
||||||
|
|
||||||
|
|
|
@ -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")
|
||||||
|
|
||||||
|
|
|
@ -109,4 +109,3 @@ class BasePlugin:
|
||||||
|
|
||||||
def settings_dialog(self):
|
def settings_dialog(self):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue