On Mon, 01 Sep 2008 20:51:00 +0200
Christoph Würstle <[EMAIL PROTECTED]> wrote:

> Hi,
> I'm new to cython and try to optimize a gtk program. So far I'm really 
> impressed how easy it is.
> So far I ask me two things:
> First, does anyone has experience in the speedup of gtk apps?
> And second, how can I translate my own signals to cython code?
> 
> In Python I write:
> 
> class myClass(gtk.VBox):
>     __gsignals__ = {
>             'mysignal' : (gobject.SIGNAL_RUN_LAST, 
> gobject.TYPE_NONE,(gobject.TYPE_STRING,gobject.TYPE_STRING)),
>     }
> 
> and Cython does not complain when 'compiling', but I can't connect to it:
> 
> TypeError: <GtkProgramName object at 0x8482054 (GtkProgramModul at 
> 0x8588100)>: unknown signal name: mysignal
> 

I'm not familiar with gtk, but this looks like VBox has a special
metaclass.. Not sure if cython supports this. You could try digging in
deeper and see what __gsignals__ invokes and instead doing it manually....

Simon.
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to