Bug#481480: python-gtk2: gtk.main() reads from stdin, so freezes GUI.
Loïc Minier
lool at dooz.org
Tue May 20 14:15:20 UTC 2008
On Fri, May 16, 2008, Francisco J. Rodríguez Bogado wrote:
> For instance, with this script:
> $ cat test.py
> import pygtk
> import gtk
> v = gtk.Window()
> caja = gtk.VBox()
> caja.add(gtk.Label("Hola holita, vecinito."))
> boton = gtk.Button(stock = gtk.STOCK_QUIT)
> boton.connect("clicked", lambda *args, **kw: gtk.main_quit())
> caja.add(boton)
> v.add(caja)
> v.show_all()
> gtk.main()
>
> $ python test.py
> ... Doesn't even show the gtk.Window.
This works for me :-(
--
Loïc Minier
More information about the pkg-gnome-maintainers
mailing list