Robert Bradshaw schrieb:
> On Sep 1, 2008, at 11:51 AM, Christoph Würstle wrote:
>   
>> 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
>>
>> Thanks a lot for your help.
>> Chris
>>     
>
> I'm not sure--this code works in Python but not in Cython?
>
> - Robert
>   
Yes, in Python it works without a problem (and this is the method 
explained at:
http://www.sicem.biz/personal/lgs/docs/gobject-python/gobject-tutorial.html#d0e570).

But after compiling the modul does not have the signal to connect with.
It works, when I add the signal with:

gobject.type_register(myClass)
gobject.signal_new('mysignal',myClass, gobject.SIGNAL_RUN_LAST, 
gobject.TYPE_NONE,(gobject.TYPE_STRING,gobject.TYPE_STRING))

Thanks for your answer Robert.

-Chris

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

Reply via email to