This commit is contained in:
恍兮惚兮 2024-06-06 14:24:53 +08:00
parent 26ecdd0103
commit 4bc6a1ae0d

View File

@ -371,7 +371,7 @@ def callbackwrap(d, k, call, _):
try: try:
sig = inspect.signature(call) sig = inspect.signature(call)
np = len(sig.parameters) np = len(sig.parameters)
if np == 1: if np >= 1:
call(_) call(_)
elif np == 0: elif np == 0:
call() call()
@ -385,7 +385,7 @@ def comboboxcallbackwrap(internallist, d, k, call, _):
try: try:
sig = inspect.signature(call) sig = inspect.signature(call)
np = len(sig.parameters) np = len(sig.parameters)
if np == 1: if np >= 1:
call(_) call(_)
elif np == 0: elif np == 0:
call() call()