[pygtk] faq 23.34 How can I use gtk.binding_entry_add

Paul Malherbe paul at tartan.co.za
Sun Jun 25 21:54:18 WST 2006


Gustavo J. A. M. Carneiro wrote:
> Sex, 2006-06-23 às 09:25 +0200, Paul Malherbe escreveu:
>   
>> Hi all
>>
>> Please could someone help me with this problem.
>>
>> Why does the following script, as per the faq, work under linux but not
>> under windows.
>>
>> ------------------------------------------------------------------------------------------------------------------
>> import sys
>> import pygtk
>> if sys.platform != "win32": pygtk.require("2.0")
>> import gtk, gobject
>>
>> class MyWindow(gtk.Window):
>>     __gsignals__ = dict(\
>>         mywindo=(gobject.SIGNAL_RUN_LAST|gobject.SIGNAL_ACTION,None,(str,)))
>>     
>
> put here:
>   gobject.type_register(MyWindow)
>
>   Regards,
>
>   
Thanks, that works great!

Paul


More information about the pygtk mailing list