From 3535eef8f8fa1d2e50624bcedd70e17c374f111a Mon Sep 17 00:00:00 2001 From: SomberNight Date: Mon, 9 May 2022 19:50:38 +0200 Subject: [PATCH] (trivial) qt locktimeedit: fix a DeprecationWarning /home/user/wspace/electrum/electrum/gui/qt/locktimeedit.py:145: DeprecationWarning: an integer is required (got type Alignment). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python. painter.drawText(textRect, Qt.AlignRight | Qt.AlignVCenter, "height") --- electrum/gui/qt/locktimeedit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qt/locktimeedit.py b/electrum/gui/qt/locktimeedit.py index f9603d98c..d8dc2b1ad 100644 --- a/electrum/gui/qt/locktimeedit.py +++ b/electrum/gui/qt/locktimeedit.py @@ -142,7 +142,7 @@ class LockTimeHeightEdit(LockTimeRawEdit): textRect.adjust(2, 0, -10, 0) painter = QPainter(self) painter.setPen(ColorScheme.GRAY.as_color()) - painter.drawText(textRect, Qt.AlignRight | Qt.AlignVCenter, "height") + painter.drawText(textRect, int(Qt.AlignRight | Qt.AlignVCenter), "height") def get_max_allowed_timestamp() -> int: