tqt send tab paytoedit: use monospace font - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit cb41a0fe89fd96c5ad28fd65377831edb2566bdc DIR parent 2e654c94409435a18439eb7c851433cee2ed87ae HTML Author: SomberNight <somber.night@protonmail.com> Date: Tue, 21 Jan 2020 14:32:18 +0100 qt send tab paytoedit: use monospace font Diffstat: M electrum/gui/qt/paytoedit.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- DIR diff --git a/electrum/gui/qt/paytoedit.py b/electrum/gui/qt/paytoedit.py t@@ -27,7 +27,7 @@ import re from decimal import Decimal from typing import NamedTuple, Sequence, Optional, List, TYPE_CHECKING -from PyQt5.QtGui import QFontMetrics +from PyQt5.QtGui import QFontMetrics, QFont from electrum import bitcoin from electrum.util import bfh, maybe_extract_bolt11_invoice t@@ -39,6 +39,7 @@ from electrum.lnaddr import LnDecodeException from .qrtextedit import ScanQRTextEdit from .completion_text_edit import CompletionTextEdit from . import util +from .util import MONOSPACE_FONT if TYPE_CHECKING: from .main_window import ElectrumWindow t@@ -64,6 +65,7 @@ class PayToEdit(CompletionTextEdit, ScanQRTextEdit, Logger): Logger.__init__(self) self.win = win self.amount_edit = win.amount_e + self.setFont(QFont(MONOSPACE_FONT)) self.document().contentsChanged.connect(self.update_size) self.heightMin = 0 self.heightMax = 150