(self, pointer)
Wrap around a pointer.

        Wraps a GObject instance around an underlying pointer. When the
        instance is garbage-collected, the underlying object is unreferenced.
Wrap around a pointer.
Wrap around a pointer .
def __init__(self, pointer):
        """Wrap around a pointer.

        Wraps a GObject instance around an underlying pointer. When the
        instance is garbage-collected, the underlying object is unreferenced.

        """

        # we have to record all of the ffi.new_handle we make for callbacks on
        # this object to prevent them being GC'd
        self._handles = []

        # record the pointer we were given to manage
        # on GC, unref
        self.pointer = ffi.gc(pointer, gobject_lib.g_object_unref)
def __init__ ( self , pointer ) : # we have to record all of the ffi.new_handle we make for callbacks on # this object to prevent them being GC'd self . _handles = [ ] # record the pointer we were given to manage # on GC, unref self . pointer = ffi . gc ( pointer , gobject_lib . g_object_unref )