
http://pastebin.com/UhnEurqb The above is a crude way to run pygtk from rpython (through CPython and talking on a pipe), but at least it partially works. Callbacks are limited to quoted lambdas, but some simple return types back to rpython is possible - i'm going to try that next. There is no support for dynamic attribute access, but most of pygtk involves function calls. Where attribute access is required, i guess extra proxy functions could be written. -brett

Hi Brett, On 07/24/2010 11:06 AM, Hart's Antler wrote:
Nice. Did you also see this?: http://morepypy.blogspot.com/2009/11/using-cpython-extension-modules-with.ht... I guess it could be used for GTK as well. BTW, I guess if we ever wanted "real" GTK support, without proxying CPython, we should use the GObject-introspection features, which should make the wrapping rather simple. Cheers, Carl Friedrich
participants (2)
-
Carl Friedrich Bolz
-
Hart's Antler