Gtk.RadioToolButton¶
| Subclasses: | None | 
|---|
Methods¶
| class | new(group) | 
| class | new_from_stock(group, stock_id) | 
| class | new_from_widget(group) | 
| class | new_with_stock_from_widget(group, stock_id) | 
| get_group() | |
| set_group(group) | 
Virtual Methods¶
| Inherited: | Gtk.ToggleToolButton (1), Gtk.ToolButton (1), Gtk.ToolItem (2), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10), Gtk.Activatable (2), Gtk.Actionable (4) | 
|---|
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 | 
|---|---|---|---|
| group | Gtk.RadioToolButton | w | The radio tool button whose group this button belongs to. | 
Style Properties¶
| Inherited: | Gtk.ToolButton (1), Gtk.Widget (17) | 
|---|
Signals¶
| Inherited: | Gtk.ToggleToolButton (1), Gtk.ToolButton (1), Gtk.ToolItem (2), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1) | 
|---|
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 | Gtk.ToggleToolButton | r | 
Class Details¶
- 
class Gtk.RadioToolButton(*args, **kwargs)¶
- Bases: - Gtk.ToggleToolButton- Abstract: - No - Structure: - Gtk.RadioToolButtonClass- A - Gtk.RadioToolButtonis a- Gtk.ToolItemthat 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 new- Gtk.RadioToolButton. Use- Gtk.RadioToolButton.new_from_widget() to create a new- Gtk.RadioToolButtonthat is part of the same group as an existing- Gtk.RadioToolButton.- CSS nodes
 - Gtk.RadioToolButtonhas a single CSS node with name toolbutton.- 
classmethod new(group)[source]¶
- Parameters: - group ([ - Gtk.RadioButton] or- None) – An existing radio button group, or- Noneif you are creating a new group- Returns: - The new - Gtk.RadioToolButton- Return type: - Gtk.ToolItem- 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, orNoneif you are creating a new group
- stock_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 new- Gtk.RadioToolButtonwill 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.
- group ([
 - 
classmethod new_from_widget(group)[source]¶
- Parameters: - group ( - Gtk.RadioToolButtonor- None) – An existing- Gtk.RadioToolButton, or- None- Returns: - The new - Gtk.RadioToolButton- Return type: - Gtk.ToolItem- Creates a new - Gtk.RadioToolButtonadding it to the same group as gruup- New in version 2.4. 
 - 
classmethod new_with_stock_from_widget(group, stock_id)[source]¶
- Parameters: - group (Gtk.RadioToolButtonorNone) – An existingGtk.RadioToolButton.
- stock_id (str) – the name of a stock item
 - Returns: - A new - Gtk.RadioToolButton- Return type: - Creates a new - Gtk.RadioToolButtonadding it to the same group as group. The new- Gtk.RadioToolButtonwill 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
- group (
 - 
get_group()[source]¶
- Returns: - The group self belongs to. - Return type: - [ - Gtk.RadioButton]- Returns the radio button group self belongs to. - New in version 2.4. 
 - 
set_group(group)[source]¶
- Parameters: - group ([ - Gtk.RadioButton] or- None) – an existing radio button group, or- None- 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: - Gtk.RadioToolButton- Default Value: - None- Flags: - WRITABLE- Sets a new group for a radio tool button. - New in version 2.4.