[pygtk] Avoiding recursive event loops... or using better toggle buttons

Ricardo Staudt ricardost at cpts.pucrs.br
Wed Mar 15 02:41:13 WST 2006


Hello everyone, this is a tricky question:

I'm trying to make a list of toggle buttons that, when one is pressed, 
the others are unpressed. I don't see a way to link them to do this 
automatically (if you guys know, please let me know), so I what I try is 
something like this:

Whenever one Toggle button is clicked, it raises the click event, there 
(inside the event function) I unpress all others by hand.

The problem is that when I unpress them it calls for the same click 
event function, causing a "recursion limit" error. Any ideas?


More information about the pygtk mailing list