From 962a1fa906d9e94d89811c8fd390aaf4365462c1 Mon Sep 17 00:00:00 2001 From: Antoine Dumoulin Date: Fri, 13 Sep 2024 14:43:43 +0200 Subject: [PATCH] fix registered callback argument --- pyrender/viewer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrender/viewer.py b/pyrender/viewer.py index d2326c3..d0e483f 100644 --- a/pyrender/viewer.py +++ b/pyrender/viewer.py @@ -680,7 +680,7 @@ def on_key_press(self, symbol, modifiers): callback = tup else: callback = tup[0] - if len(tup) == 2: + if len(tup) >= 2: args = tup[1] if len(tup) == 3: kwargs = tup[2]