From 8c2fe38be20b1c55cc49e67af7c878aeffce00bf Mon Sep 17 00:00:00 2001 From: Mike Hendricks Date: Wed, 21 Aug 2024 16:25:53 -0700 Subject: [PATCH] Fix error when resizing font using scroll wheel in python 3.10+ --- preditor/gui/loggerwindow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preditor/gui/loggerwindow.py b/preditor/gui/loggerwindow.py index ca428b1f..baf410b2 100644 --- a/preditor/gui/loggerwindow.py +++ b/preditor/gui/loggerwindow.py @@ -519,7 +519,7 @@ def wheelEvent(self, event): delta = event.angleDelta().y() # convert delta to +1 or -1, depending - delta = delta / abs(delta) + delta = delta // abs(delta) minSize = 5 maxSize = 50 font = self.console().font()