Gtk.RadioToolButton¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.ToggleToolButton (4), Gtk.ToolButton (14), Gtk.ToolItem (28), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Activatable (6), Gtk.Actionable (5)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
class |
|
class |
|
class |
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Gtk.ToggleToolButton (1), Gtk.ToolButton (6), Gtk.ToolItem (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Activatable (2), Gtk.Actionable (2)
Name |
Type |
Flags |
Short Description |
---|---|---|---|
w |
The radio tool button whose group this button belongs to. |
Style Properties¶
- Inherited:
Signals¶
Fields¶
- Inherited:
Gtk.ToggleToolButton (1), Gtk.ToolButton (1), Gtk.ToolItem (2), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Gtk.RadioToolButton(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
Gtk.RadioToolButton
is aGtk.ToolItem
that contains a radio button, that is, a button that is part of a group of toggle buttons where only one button can be active at a time.Use
Gtk.RadioToolButton.new
() to create a newGtk.RadioToolButton
. UseGtk.RadioToolButton.new_from_widget
() to create a newGtk.RadioToolButton
that is part of the same group as an existingGtk.RadioToolButton
.- CSS nodes
Gtk.RadioToolButton
has a single CSS node with name toolbutton.- classmethod new(group)[source]¶
- Parameters:
group ([
Gtk.RadioButton
] orNone
) – An existing radio button group, orNone
if you are creating a new group- Returns:
The new
Gtk.RadioToolButton
- Return type:
Creates a new
Gtk.RadioToolButton
, adding it to group.New in version 2.4.
- classmethod new_from_stock(group, stock_id)[source]¶
- Parameters:
group ([
Gtk.RadioButton
] orNone
) – an existing radio button group, orNone
if you are creating a new groupstock_id (
str
) – the name of a stock item
- Returns:
The new
Gtk.RadioToolButton
- Return type:
Creates a new
Gtk.RadioToolButton
, adding it to group. The newGtk.RadioToolButton
will contain an icon and label from the stock item indicated by stock_id.New in version 2.4.
Deprecated since version 3.10: Use
Gtk.RadioToolButton.new
() instead.
- classmethod new_from_widget(group)[source]¶
- Parameters:
group (
Gtk.RadioToolButton
orNone
) – An existingGtk.RadioToolButton
, orNone
- Returns:
The new
Gtk.RadioToolButton
- Return type:
Creates a new
Gtk.RadioToolButton
adding it to the same group as gruupNew in version 2.4.
- classmethod new_with_stock_from_widget(group, stock_id)[source]¶
- Parameters:
group (
Gtk.RadioToolButton
orNone
) – An existingGtk.RadioToolButton
.stock_id (
str
) – the name of a stock item
- Returns:
A new
Gtk.RadioToolButton
- Return type:
Creates a new
Gtk.RadioToolButton
adding it to the same group as group. The newGtk.RadioToolButton
will contain an icon and label from the stock item indicated by stock_id.New in version 2.4.
Deprecated since version 3.10:
Gtk.RadioToolButton.new_from_widget
- get_group()[source]¶
- Returns:
The group self belongs to.
- Return type:
Returns the radio button group self belongs to.
New in version 2.4.
- set_group(group)[source]¶
- Parameters:
group ([
Gtk.RadioButton
] orNone
) – an existing radio button group, orNone
Adds self to group, removing it from the group it belonged to before.
New in version 2.4.
Property Details¶
- Gtk.RadioToolButton.props.group¶
- Name:
group
- Type:
- Default Value:
- Flags:
Sets a new group for a radio tool button.
New in version 2.4.