From e8436fb74ded667f680dfeba288cf3e4fa35e0d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sat, 3 Aug 2024 19:13:44 +0800 Subject: [PATCH] int --- LunaTranslator/LunaTranslator/gui/translatorUI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/gui/translatorUI.py b/LunaTranslator/LunaTranslator/gui/translatorUI.py index b02528b0..33e0185f 100644 --- a/LunaTranslator/LunaTranslator/gui/translatorUI.py +++ b/LunaTranslator/LunaTranslator/gui/translatorUI.py @@ -53,7 +53,7 @@ class ButtonX(QWidget): def resizeEvent(self, e): h = int(e.size().height() / 1.5) - self.setFixedWidth(self.height() * 2 / 1.5) + self.setFixedWidth(int(self.height() * 2 / 1.5)) self.setIconSize(QSize(h, h))