Panda3D
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties
Public Member Functions | Static Public Member Functions
PythonCallbackObject Class Reference

This is a specialization on CallbackObject to allow a callback to directly call an arbitarary Python function. More...

Inheritance diagram for PythonCallbackObject:
CallbackObject TypedReferenceCount TypedObject ReferenceCount

List of all members.

Public Member Functions

 PythonCallbackObject (PyObject function)
 PythonCallbackObject ()
PyObject getFunction ()
 Returns the function that is called for the callback.
 operator new (unsigned int size)
 setFunction (PyObject function)
 Replaces the function that is called for the callback.

Static Public Member Functions

static TypeHandle getClassType ()

Detailed Description

This is a specialization on CallbackObject to allow a callback to directly call an arbitarary Python function.

Powerful! But use with caution.


Constructor & Destructor Documentation

PythonCallbackObject ( PyObject  function)

Member Function Documentation

static TypeHandle getClassType ( ) [static]

Reimplemented from CallbackObject.

PyObject getFunction ( )

Returns the function that is called for the callback.

operator new ( unsigned int  size)
setFunction ( PyObject  function)

Replaces the function that is called for the callback.

runs. The parameter should be a Python callable object.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties