From cb64beb810d63e2a8ca370637f5e3d95b2188853 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: Thu, 20 Jun 2024 23:35:37 +0800 Subject: [PATCH] shit --- LunaTranslator/LunaTranslator/gui/usefulwidget.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/LunaTranslator/LunaTranslator/gui/usefulwidget.py b/LunaTranslator/LunaTranslator/gui/usefulwidget.py index de942a55..822643f8 100644 --- a/LunaTranslator/LunaTranslator/gui/usefulwidget.py +++ b/LunaTranslator/LunaTranslator/gui/usefulwidget.py @@ -179,6 +179,9 @@ class closeashidewindow(saveposwindow): class MySwitch(QWidget): clicked = pyqtSignal(bool) + def click(self): + self.setChecked(not self.checked) + def sizeHint(self): return QSize( int(1.62 * globalconfig["buttonsize2"]), globalconfig["buttonsize2"]