mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
qt send tab paytoedit: use monospace font
This commit is contained in:
parent
2e654c9440
commit
cb41a0fe89
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue