GimpUi.enum_radio_box_new

function enum_radio_box_new(enum_type: GObject.Type, callback: GObject.Callback): [return_value: Gtk.Widget, first_button: Gtk.Widget] {
    // Gjs wrapper for gimp_enum_radio_box_new()
}
  

Creates a new group of Gtk.RadioButtons representing the enum values. A group of radiobuttons is a good way to represent enums with up to three or four values. Often it is better to use a GimpUi.EnumComboBox instead.

Since 2.4

enum_type

the GLib.Type of an enum.

callback

a callback to connect to the "toggled" signal of each Gtk.RadioButton that is created.

return_value

a new Gtk.Box holding a group of Gtk.RadioButtons.

first_button

Returns the first button in the created group.