Like checkboxes, radio buttons also inherit from Gtk.ToggleButton, so you can use the set_active() method to set the status of a radio button. This action causes the “toggled” signal to be emitted.
For example, if we have 3 radio buttons called radio1, radio2, and radio3 in a group, by default the first one in the group would be selected. If we want to select another one, for example, radio3 instead, we should use:
Like checkboxes, radio buttons also inherit from
Gtk.ToggleButton
, so you can use theset_active()
method to set the status of a radio button. This action causes the“toggled”
signal to be emitted.For example, if we have 3 radio buttons called
radio1
,radio2
, andradio3
in a group, by default the first one in the group would be selected. If we want to select another one, for example,radio3
instead, we should use:References