Hi,

I just realized that a 'clicked' signal is emitted each time a value
is I toggled using .set_active(is_active) in a CheckButton.

I find it misleading and counter-intuitive since no one is clicking
anything. If that's the desired behaviour, what is the difference between
signal 'toggled' and 'clicked'?

The documentation states: The "clicked" signal is emitted when the mouse
button is pressed and released while the pointer is over the button.

thanks in advance
sandro
*:-)




-- 
Sandro Dentella  *:-)
http://sqlkit.argolinux.org        SQLkit home page - PyGTK/python/sqlalchemy


the example
==============

import gtk

class Test(object):

    def __init__(self):

        w = gtk.Window()

        self.c1 = gtk.CheckButton()

        w.add(self.c1)

        w.show_all()

        self.c1.connect('clicked', self.clicked_cb)
        self.c1.connect('toggled', self.toggled_cb)

    def clicked_cb(self, cb):
        print "clicked"
        return True

    def toggled_cb(self, cb):
        print "toggled"
        return True

if __name__ in '__main__':

    t = Test()
    t.c1.set_active(True)
    gtk.main()

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to