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

Gustavo J. A. M. Carneiro gjc at inescporto.pt
Sun Jun 25 18:32:48 WST 2006


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,

-- 
Gustavo J. A. M. Carneiro
<gjc at inescporto.pt> <gustavo at users.sourceforge.net>
The universe is always one step beyond logic



More information about the pygtk mailing list