Просмотр исходного кода

docs: Add note about instance methods as callbacks in scripting

gxalpha 3 лет назад
Родитель
Сommit
4d2f7ef009
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      docs/sphinx/scripting.rst

+ 3 - 0
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