electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 0a395fefbc885904e0b14ddea593d3cf6c579ce8
parent f0d69d1dba3342313070fbe6af131bcad912f5b5
Author: SomberNight <somber.night@protonmail.com>
Date:   Sun, 22 Sep 2019 06:20:57 +0200

qt send tab: use monospace font in "from" UTXO-selection section

Diffstat:
Melectrum/gui/qt/main_window.py | 13++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py @@ -38,7 +38,7 @@ import queue import asyncio from typing import Optional, TYPE_CHECKING -from PyQt5.QtGui import QPixmap, QKeySequence, QIcon, QCursor +from PyQt5.QtGui import QPixmap, QKeySequence, QIcon, QCursor, QFont from PyQt5.QtCore import Qt, QRect, QStringListModel, QSize, pyqtSignal from PyQt5.QtWidgets import (QMessageBox, QComboBox, QSystemTrayIcon, QTabWidget, QSpinBox, QMenuBar, QFileDialog, QCheckBox, QLabel, @@ -87,7 +87,8 @@ from .util import (read_QIcon, ColorScheme, text_dialog, icon_path, WaitingDialo OkButton, InfoButton, WWLabel, TaskThread, CancelButton, CloseButton, HelpButton, MessageBoxMixin, EnterButton, ButtonsLineEdit, CopyCloseButton, import_meta_gui, export_meta_gui, - filename_field, address_field, char_width_in_lineedit, webopen) + filename_field, address_field, char_width_in_lineedit, webopen, + MONOSPACE_FONT) from .util import ButtonsTextEdit from .installwizard import WIF_HELP_TEXT from .history_list import HistoryList, HistoryModel @@ -1559,10 +1560,12 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger): def format(x): h = x.get('prevout_hash') - return h[0:10] + '...' + h[-10:] + ":%d"%x.get('prevout_n') + u'\t' + "%s"%x.get('address') + return h[0:10] + '...' + h[-10:] + ":%d"%x.get('prevout_n') + '\t' + "%s"%x.get('address') + '\t' - for item in self.pay_from: - self.from_list.addTopLevelItem(QTreeWidgetItem( [format(item), self.format_amount(item['value']) ])) + for coin in self.pay_from: + item = QTreeWidgetItem([format(coin), self.format_amount(coin['value'])]) + item.setFont(0, QFont(MONOSPACE_FONT)) + self.from_list.addTopLevelItem(item) def get_contact_payto(self, key): _type, label = self.contacts.get(key)