1
0

(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")
This commit is contained in:
SomberNight
2022-05-09 19:50:38 +02:00
parent 9e0a0af81a
commit 3535eef8f8

View File

@@ -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: