panda3d.core.PythonCallbackObject

class PythonCallbackObject

Bases: CallbackObject

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

Inheritance diagram

Inheritance diagram of PythonCallbackObject

__init__(function: object) → None
__init__(param0: PythonCallbackObject) → None
operatorNew(size: size_t) → None
setFunction(function: object) → None

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

getFunction() → object

Returns the function that is called for the callback.

static getClassType() → TypeHandle
Return type

TypeHandle

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.