From d08ed6410a49302151ed4122fd4a5047595dc9eb Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 10 Dec 2019 23:01:01 +0100 Subject: [PATCH] python3.8: fix DeprecationWarning in qt/paytoedit .../electrum/electrum/gui/qt/paytoedit.py:221: DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python. self.setMinimumHeight(h) --- electrum/gui/qt/paytoedit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/gui/qt/paytoedit.py b/electrum/gui/qt/paytoedit.py index 01a8069cf..166907c61 100644 --- a/electrum/gui/qt/paytoedit.py +++ b/electrum/gui/qt/paytoedit.py @@ -216,7 +216,7 @@ def paytomany(self): def update_size(self): lineHeight = QFontMetrics(self.document().defaultFont()).height() docHeight = self.document().size().height() - h = docHeight * lineHeight + 11 + h = round(docHeight * lineHeight + 11) h = min(max(h, self.heightMin), self.heightMax) self.setMinimumHeight(h) self.setMaximumHeight(h)