On Sat, 2008-10-18 at 17:00 -0400, Jason Tackaberry wrote:
> On Thu, 2008-10-16 at 19:21 +0100, Neil Roberts wrote:
> > cogl_tex = hash(tex.get_property("cogl_texture"))
>
> Ah, this is handy, I didn't know you could do this. (That is, get the
> pointer to the underlying C object with pyclutter.)
it's all ctypes, nothing to do with pygobject or pyclutter. which leads
to the answer for your question, which is...
> Is it similarly possible to use ctypes to create a ClutterActor (for
> example a ClutterX11TexturePixmap using
> clutter_x11_texture_pixmap_new()) and then create a clutter actor
> pyobject with pyclutter, wrapping the ClutterActor created using ctypes?
no. or, at least, half-no.
you can create an instance of a C GObject using the ctypes module and
possibly some syntactic sugar using a module; but no: you cannot mix a
pygobject based binding (like pyclutter) and a ctypes-based one. so your
application would either be completely using ctypes or completely using
pyclutter.
ciao,
Emmanuele.
--
Emmanuele Bassi, Intel Open Source Technology Center
--
To unsubscribe send a mail to [EMAIL PROTECTED]