Panda3D

- Main Page
- Packages
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

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:

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 | ) |

PythonCallbackObject | ( |  | ) |

## 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