ActionRow
Superclasses: PreferencesRow
, ListBoxRow
, Widget
, InitiallyUnowned
, Object
Subclasses: ComboRow
, SpinRow
, SwitchRow
Implemented Interfaces: Accessible
, Actionable
, Buildable
, ConstraintTarget
- Constructors:
ActionRow(**properties)
new() -> Gtk.Widget
Constructors
Methods
- class ActionRow
-
- get_icon_name() str | None
Gets the icon name for
self
.Deprecated since version 1.3: Use
add_prefix
to add an icon.
- get_subtitle_lines() int
Gets the number of lines at the end of which the subtitle label will be ellipsized.
- get_subtitle_selectable() bool
Gets whether the user can copy the subtitle from the label
Added in version 1.3.
- get_title_lines() int
Gets the number of lines at the end of which the title label will be ellipsized.
- remove(widget: Widget) None
Removes a child from
self
.- Parameters:
widget – the child to be removed
- set_activatable_widget(widget: Widget | None = None) None
Sets the widget to activate when
self
is activated.The row can be activated either by clicking on it, calling
activate
, or via mnemonics in the title. See theuse_underline
property to enable mnemonics.The target widget will be activated by emitting the
mnemonic_activate
signal on it.- Parameters:
widget – the target widget
- set_icon_name(icon_name: str | None = None) None
Sets the icon name for
self
.Deprecated since version 1.3: Use
add_prefix
to add an icon.- Parameters:
icon_name – the icon name
- set_subtitle(subtitle: str) None
Sets the subtitle for
self
.The subtitle is interpreted as Pango markup unless
use_markup
is set toFALSE
.- Parameters:
subtitle – the subtitle
- set_subtitle_lines(subtitle_lines: int) None
Sets the number of lines at the end of which the subtitle label will be ellipsized.
If the value is 0, the number of lines won’t be limited.
- Parameters:
subtitle_lines – the number of lines at the end of which the subtitle label will be ellipsized
- set_subtitle_selectable(subtitle_selectable: bool) None
Sets whether the user can copy the subtitle from the label
See also
selectable
.Added in version 1.3.
- Parameters:
subtitle_selectable –
TRUE
if the user can copy the subtitle from the label
Properties
- class ActionRow
- props.activatable_widget: Widget
The widget to activate when the row is activated.
The row can be activated either by clicking on it, calling
activate
, or via mnemonics in the title. See theuse_underline
property to enable mnemonics.The target widget will be activated by emitting the
mnemonic_activate
signal on it.
- props.icon_name: str
The icon name for this row.
Deprecated since version 1.3: Use
add_prefix
to add an icon.
- props.subtitle: str
The subtitle for this row.
The subtitle is interpreted as Pango markup unless
use_markup
is set toFALSE
.
- props.subtitle_lines: int
The number of lines at the end of which the subtitle label will be ellipsized.
If the value is 0, the number of lines won’t be limited.
- props.subtitle_selectable: bool
Whether the user can copy the subtitle from the label.
See also
selectable
.Added in version 1.3.
Signals
Virtual Methods
Fields
- class ActionRow
- parent_instance