From cc69cf3f3305749d3f157415d267636cc61701c0 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 5 Feb 2021 16:43:00 +0100 Subject: [PATCH] Qt: fix deprecation warning --- electrum/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 index efd768e5e..eedca4e8e 100644 --- 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: