From 4bc6a1ae0dc784e138239a7289650ef450a8b300 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, 6 Jun 2024 14:24:53 +0800 Subject: [PATCH] . --- LunaTranslator/LunaTranslator/gui/usefulwidget.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LunaTranslator/LunaTranslator/gui/usefulwidget.py b/LunaTranslator/LunaTranslator/gui/usefulwidget.py index 98c1148f..a84583e3 100644 --- a/LunaTranslator/LunaTranslator/gui/usefulwidget.py +++ b/LunaTranslator/LunaTranslator/gui/usefulwidget.py @@ -371,7 +371,7 @@ def callbackwrap(d, k, call, _): try: sig = inspect.signature(call) np = len(sig.parameters) - if np == 1: + if np >= 1: call(_) elif np == 0: call() @@ -385,7 +385,7 @@ def comboboxcallbackwrap(internallist, d, k, call, _): try: sig = inspect.signature(call) np = len(sig.parameters) - if np == 1: + if np >= 1: call(_) elif np == 0: call()