Handy.ExpanderRow¶
- Subclasses:
None
Methods¶
- Inherited:
Handy.PreferencesRow (5), Gtk.ListBoxRow (10), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Actionable (5)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Handy.PreferencesRow (2), Gtk.ListBoxRow (2), Gtk.Container (3), Gtk.Widget (39), Gtk.Actionable (2)
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/en |
Whether the expansion is enabled |
||
r/w/en |
Whether the row is expanded |
||
r/w/en |
Icon name |
||
r/w/en |
Whether the switch enabling the expansion is visible |
||
r/w/en |
The subtitle for this row |
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Gtk.ListBoxRow (1), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Fields¶
- Inherited:
Gtk.ListBoxRow (1), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Name |
Type |
Access |
Description |
|---|---|---|---|
parent_instance |
r |
Class Details¶
- class Handy.ExpanderRow(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A [class`Gtk`.ListBoxRow] used to reveal widgets.
The
HdyExpanderRowwidget allows the user to reveal or hide widgets below it. It also allows the user to enable the expansion of the row, allowing to disable all that the row contains.The
HdyExpanderRowimplementation of the [iface`Gtk`.Buildable] interface supports adding a child as an action widget by specifying “action” as the “type” attribute of a <child> element.It also supports adding it as a prefix widget by specifying “prefix” as the “type” attribute of a <child> element.
- CSS nodes
HdyExpanderRowhas a main CSS node with namerow, and the.expanderstyle class. It has the.emptystyle class when it contains no children.It contains the subnodes
row.headerfor its main embedded row,list.nestedfor the list it can expand, andimage.expander-row-arrowfor its arrow.When expanded,
HdyExpanderRowwill add the.checked-expander-row-previous-siblingstyle class to its previous sibling, and remove it when retracted.Added in version 1.0.
- classmethod new()¶
- Returns:
the newly created
HdyExpanderRow- Return type:
Creates a new
HdyExpanderRow.Added in version 1.0.
- add_action(widget)¶
- Parameters:
widget (
Gtk.Widget) – the action widget
Adds an action widget to self.
Added in version 1.0.
- add_prefix(widget)¶
- Parameters:
widget (
Gtk.Widget) – the prefix widget
Adds a prefix widget to self.
Added in version 1.0.
- get_enable_expansion()¶
- Returns:
whether the expansion of self is enabled
- Return type:
Gets whether the expansion of self is enabled.
Added in version 1.0.
- get_icon_name()¶
- Returns:
the icon name for self
- Return type:
Gets the icon name for self.
Added in version 1.0.
- get_show_enable_switch()¶
- Returns:
whether the switch enabling the expansion of self is visible
- Return type:
Gets whether the switch enabling the expansion of self is visible.
Added in version 1.0.
- get_subtitle()¶
-
Gets the subtitle for self.
Added in version 1.0.
- get_use_underline()¶
- Returns:
whether an embedded underlines indicates a mnemonic
- Return type:
Gets whether an embedded underline in the title or subtitle labels indicates a mnemonic.
Added in version 1.0.
- set_enable_expansion(enable_expansion)¶
- Parameters:
enable_expansion (
bool) –TRUEto enable the expansion
Sets whether the expansion of self is enabled.
Added in version 1.0.
- set_icon_name(icon_name)¶
- Parameters:
icon_name (
str) – the icon name
Sets the icon name for self.
Added in version 1.0.
- set_show_enable_switch(show_enable_switch)¶
- Parameters:
show_enable_switch (
bool) –TRUEto show the switch enabling the expansion
Sets whether the switch enabling the expansion of self is visible.
Added in version 1.0.
- set_subtitle(subtitle)¶
-
Sets the subtitle for self.
Added in version 1.0.
Property Details¶
- Handy.ExpanderRow.props.enable_expansion¶
- Name:
enable-expansion- Type:
- Default Value:
- Flags:
Whether expansion is enabled.
Added in version 1.0.
- Handy.ExpanderRow.props.expanded¶
- Name:
expanded- Type:
- Default Value:
- Flags:
Whether the row is expanded.
Added in version 1.0.
- Handy.ExpanderRow.props.icon_name¶
- Name:
icon-name- Type:
- Default Value:
''- Flags:
The icon name for this row.
Added in version 1.0.
- Handy.ExpanderRow.props.show_enable_switch¶
- Name:
show-enable-switch- Type:
- Default Value:
- Flags:
Whether the switch enabling the expansion is visible.
Added in version 1.0.
- Handy.ExpanderRow.props.subtitle¶
- Name:
subtitle- Type:
- Default Value:
''- Flags:
The subtitle for this row.
Added in version 1.0.