tpython3.8: fix DeprecationWarning in qt/paytoedit - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit d08ed6410a49302151ed4122fd4a5047595dc9eb DIR parent 9d0ae2f95b0040312ffe5430a59c7ddbaf8e27d3 HTML Author: SomberNight <somber.night@protonmail.com> Date: Tue, 10 Dec 2019 23:01:01 +0100 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) Diffstat: M electrum/gui/qt/paytoedit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/electrum/gui/qt/paytoedit.py b/electrum/gui/qt/paytoedit.py t@@ -216,7 +216,7 @@ class PayToEdit(CompletionTextEdit, ScanQRTextEdit, Logger): 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)