[pygtk] Which is the active radiobutton?

Brian Rowlands (Greymouth High School) RowlandsB at greyhigh.school.nz
Fri Jun 4 13:25:35 WST 2010


Thanks for all the good advice.

Found my mental block.

Solution:
radio = [r for r in cbc['radio_ped'].get_group() if r.get_active()][0] 
radiolabel = radio.get_label()

where radio_ped is the group name of the radio buttons

Brian



More information about the pygtk mailing list