GimpUi.IntRadioFrame¶
- Subclasses:
None
Methods¶
- Inherited:
GimpUi.Frame (1), Gtk.Frame (9), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/en |
The int store for the radio frame |
||
r/w/en |
Value of active item |
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class GimpUi.IntRadioFrame(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A widget providing a frame with title, containing grouped radio buttons, each associated with an integer value and random user data.
- classmethod new(labels)¶
- Parameters:
- Returns:
a new
GimpUi.IntRadioFrame.- Return type:
A variant of
GimpUi.IntRadioFrame.new() that takes an array of labels. The array indices are used as values.New in version 3.0.
- classmethod new_from_store(title, store)¶
- Parameters:
title (
str) – the frame label.store (
GimpUi.IntStore) – theGimpUi.IntStoreto generate radio buttons from.
- Returns:
a new
GimpUi.IntRadioFrame.- Return type:
Creates a
GimpUi.IntRadioFramecontaining radio buttons for each item in the store. The created widget takes ownership of store.If you need to construct an empty
GimpUi.IntRadioFrame, it’s best to use g_object_new (GIMP_TYPE_INT_RADIO_FRAME,None).If you want to have a frame title with a mnemonic, set title to
Noneinstead and call [method`IntRadioFrame`.set_title] instead.New in version 3.0.
- get_active_user_data()¶
- Returns:
Trueif user_data has been set orFalseif no item was active.- user_data:
return location for the
objectvalue
- Return type:
Retrieves the user-data of the selected (active) item in the self.
New in version 3.0.
- set_active(value)¶
- Parameters:
value (
int) – an integer value- Returns:
Trueon success (value changed or not) orFalseif there was no item for this value.- Return type:
Looks up the item that belongs to the given value and makes it the selected item in the self.
New in version 3.0.
- set_active_by_user_data(user_data)¶
-
Looks up the item that has the given user_data and makes it the selected item in the self.
New in version 3.0.
- set_sensitivity(func, *data)¶
- Parameters:
func (
GimpUi.IntRadioFrameSensitivityFunc) – a function that returns a boolean value, orNoneto unset
Sets a function that is used to decide about the sensitivity of radio buttons in the self. Use this if you want to set certain radio buttons insensitive.
Calling
Gtk.Widget.queue_draw() on the self will cause the sensitivity to be updated.New in version 3.0.
Property Details¶
- GimpUi.IntRadioFrame.props.store¶
- Name:
store- Type:
- Default Value:
- Flags:
The
GimpUi.IntStorefrom which the radio frame takes the values shown in the list.New in version 3.0.
- GimpUi.IntRadioFrame.props.value¶
- Name:
value- Type:
- Default Value:
0- Flags:
The active value
New in version 3.0.