|
Panda3D
|
This is a specialization on CallbackObject to allow a callback to directly call an arbitarary Python function. More...
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 () |
This is a specialization on CallbackObject to allow a callback to directly call an arbitarary Python function.
Powerful! But use with caution.
| PythonCallbackObject | ( | PyObject | function | ) |
| 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.
1.7.3