From 341e57ae2d0a2d4badc026b9b58dcc0f8cd68f10 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: Fri, 19 Jul 2024 10:51:56 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/gui/usefulwidget.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/gui/usefulwidget.py b/LunaTranslator/LunaTranslator/gui/usefulwidget.py index 92451f0b..f2b5c1cb 100644 --- a/LunaTranslator/LunaTranslator/gui/usefulwidget.py +++ b/LunaTranslator/LunaTranslator/gui/usefulwidget.py @@ -58,6 +58,9 @@ class LFocusCombo(FocusCombo, LBase): for i in range(self.count()): self.setItemText(i, _TR(self.__items[i])) + def changeEvent(self, e: QEvent): + super(LFocusCombo, self).changeEvent(e) + class FocusFontCombo(QFontComboBox, FocusCombo): pass @@ -123,7 +126,7 @@ def getQMessageBox( useok=True, usecancel=False, okcallback=None, - cancelcallback=None + cancelcallback=None, ): msgBox = LMessageBox(parent) msgBox.setWindowTitle((title))