commit 667635f8160437934e9d7c4043b69ba3283b00e3 parent 1924eec922aa50c95f435c448480e3f78e9814e4 Author: GeaRSiX <gearsix@tuta.io> Date: Mon, 9 Aug 2021 18:19:03 +0100 fixed depreciation warning in sya-pyqt Diffstat:
M | sya-pyqt.py | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sya-pyqt.py b/sya-pyqt.py @@ -21,7 +21,7 @@ def resource_path(relative_path): def centerWidget(widget): sg = qtwidg.QDesktopWidget().screenGeometry() wg = widget.geometry() - return qtcore.QPoint(sg.width() / 2 - wg.width() / 2, sg.height() / 2 - wg.height() / 2) + return qtcore.QPoint(round(sg.width() / 2) - round(wg.width() / 2), round(sg.height() / 2) - round(wg.height() / 2)) class LogStream(qtcore.QObject): txt = qtcore.pyqtSignal(str)