From 4d2f7ef009cbbcfe13bd75853240b7fcf9694137 Mon Sep 17 00:00:00 2001 From: gxalpha Date: Fri, 14 Apr 2023 16:22:02 +0200 Subject: [PATCH] docs: Add note about instance methods as callbacks in scripting --- docs/sphinx/scripting.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/sphinx/scripting.rst b/docs/sphinx/scripting.rst index 62c8f3569..df5729255 100644 --- a/docs/sphinx/scripting.rst +++ b/docs/sphinx/scripting.rst @@ -122,6 +122,9 @@ without necessarily having to lock scripts/interpreters every frame. Adds an timer callback which triggers every *milliseconds*. + Note: Using instance methods as callbacks is not supported. Always + use module methods. + .. py:function:: timer_remove(callback) Removes a timer callback. (Note: You can also use