PythonCallbackObject

from panda3d.core import PythonCallbackObject
class PythonCallbackObject

Bases:

Bases: CallbackObject

This is a specialization on CallbackObject to allow a callback to directly call an arbitrary Python function. Powerful! But use with caution.

Inheritance diagram

Inheritance diagram of PythonCallbackObject

__init__(function: object)
__init__(param0: PythonCallbackObject)
__reduce__() object

Implements pickle support.

property function
Getter

Returns the function that is called for the callback.

Setter

Replaces the function that is called for the callback. runs. The parameter should be a Python callable object.

static get_class_type() TypeHandle
get_function() object

Returns the function that is called for the callback.

operator_new(size: int)
set_function(function: object)

Replaces the function that is called for the callback. runs. The parameter should be a Python callable object.