electrum

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

commit cc69cf3f3305749d3f157415d267636cc61701c0
parent f28a2aae73b8a4a2067f41d2f69809e2b1ec6a20
Author: ThomasV <thomasv@electrum.org>
Date:   Fri,  5 Feb 2021 16:43:00 +0100

Qt: fix deprecation warning

Diffstat:
Melectrum/gui/qt/amountedit.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/electrum/gui/qt/amountedit.py b/electrum/gui/qt/amountedit.py @@ -69,7 +69,7 @@ class AmountEdit(FreezableLineEdit): textRect.adjust(2, 0, -10, 0) painter = QPainter(self) painter.setPen(ColorScheme.GRAY.as_color()) - painter.drawText(textRect, Qt.AlignRight | Qt.AlignVCenter, self.base_unit()) + painter.drawText(textRect, int(Qt.AlignRight | Qt.AlignVCenter), self.base_unit()) def get_amount(self) -> Union[None, Decimal, int]: try: