PythonCallbackObject

from panda3d.core import PythonCallbackObject
class PythonCallbackObject

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__(*args, **kwargs)
function
getClassType()

C++ Interface: get_class_type()

getFunction()

C++ Interface: get_function(const PythonCallbackObject self)

/**
  • Returns the function that is called for the callback.

*/

get_class_type()

C++ Interface: get_class_type()

get_function()

C++ Interface: get_function(const PythonCallbackObject self)

/**
  • Returns the function that is called for the callback.

*/

setFunction()

C++ Interface: set_function(const PythonCallbackObject self, object function)

/**
  • Replaces the function that is called for the callback. runs. The

  • parameter should be a Python callable object.

*/

set_function()

C++ Interface: set_function(const PythonCallbackObject self, object function)

/**
  • Replaces the function that is called for the callback. runs. The

  • parameter should be a Python callable object.

*/