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

digraph inheritancefad449d0b5 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "CallbackObject" [URL="acron.core.CallbackObject.html#acron.core.CallbackObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedReferenceCount" -> "CallbackObject" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; "PythonCallbackObject" [URL="acron.core.PythonCallbackObject.html#acron.core.PythonCallbackObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "CallbackObject" -> "PythonCallbackObject" [arrowsize=0.75,style=""]; "ReferenceCount" [URL="acron.core.ReferenceCount.html#acron.core.ReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "ReferenceCount" [arrowsize=0.75,style=""]; "TypedObject" [URL="acron.core.TypedObject.html#acron.core.TypedObject",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "TypedObject" [arrowsize=0.75,style=""]; "TypedReferenceCount" [URL="acron.core.TypedReferenceCount.html#acron.core.TypedReferenceCount",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "TypedObject" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; "ReferenceCount" -> "TypedReferenceCount" [arrowsize=0.75,style=""]; }
PythonCallbackObject.__init__()
PythonCallbackObject.__reduce__()

Implements pickle support.

static PythonCallbackObject.get_class_type()
PythonCallbackObject.get_function()

Returns the function that is called for the callback.

static PythonCallbackObject.operator_delete()
static PythonCallbackObject.operator_delete()
static PythonCallbackObject.operator_new()
static PythonCallbackObject.operator_new()
PythonCallbackObject.set_function()

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

static PythonCallbackObject.validate_ptr()