(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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user