[pygtk] Let's split it up...
Alessandro Dentella
sandro at e-den.it
Tue Jul 1 22:09:03 WST 2008
Ok, I try to split it into very little bits...
I want a CheckButton that doesn't react to "click".
I thought to connect a handler to the signal "clicked" that just "return
True" but it does not work. What's wrong?
sandro
w = gtk.Window()
c1 = gtk.CheckButton('toggle and clecked -> True')
w.add(c1)
c1.connect('toggled', lambda b: True)
c1.connect('clicked', lambda b: True)
w.show_all()
gtk.main()
More information about the pygtk
mailing list