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
HdyExpanderRow
widget 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
HdyExpanderRow
implementation 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
HdyExpanderRow
has a main CSS node with namerow
, and the.expander
style class. It has the.empty
style class when it contains no children.It contains the subnodes
row.header
for its main embedded row,list.nested
for the list it can expand, andimage.expander-row-arrow
for its arrow.When expanded,
HdyExpanderRow
will add the.checked-expander-row-previous-sibling
style class to its previous sibling, and remove it when retracted.New in version 1.0.
- classmethod new()¶
- Returns:
the newly created
HdyExpanderRow
- Return type:
Creates a new
HdyExpanderRow
.New in version 1.0.
- add_action(widget)¶
- Parameters:
widget (
Gtk.Widget
) – the action widget
Adds an action widget to self.
New in version 1.0.
- add_prefix(widget)¶
- Parameters:
widget (
Gtk.Widget
) – the prefix widget
Adds a prefix widget to self.
New 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.
New in version 1.0.
- get_icon_name()¶
- Returns:
the icon name for self
- Return type:
Gets the icon name for self.
New 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.
New in version 1.0.
- get_subtitle()¶
-
Gets the subtitle for self.
New 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.
New in version 1.0.
- set_enable_expansion(enable_expansion)¶
- Parameters:
enable_expansion (
bool
) –TRUE
to enable the expansion
Sets whether the expansion of self is enabled.
New in version 1.0.
- set_icon_name(icon_name)¶
- Parameters:
icon_name (
str
) – the icon name
Sets the icon name for self.
New in version 1.0.
- set_show_enable_switch(show_enable_switch)¶
- Parameters:
show_enable_switch (
bool
) –TRUE
to show the switch enabling the expansion
Sets whether the switch enabling the expansion of self is visible.
New in version 1.0.
- set_subtitle(subtitle)¶
-
Sets the subtitle for self.
New in version 1.0.
Property Details¶
- Handy.ExpanderRow.props.enable_expansion¶
- Name:
enable-expansion
- Type:
- Default Value:
- Flags:
Whether expansion is enabled.
New in version 1.0.
- Handy.ExpanderRow.props.expanded¶
- Name:
expanded
- Type:
- Default Value:
- Flags:
Whether the row is expanded.
New in version 1.0.
- Handy.ExpanderRow.props.icon_name¶
- Name:
icon-name
- Type:
- Default Value:
''
- Flags:
The icon name for this row.
New 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.
New in version 1.0.
- Handy.ExpanderRow.props.subtitle¶
- Name:
subtitle
- Type:
- Default Value:
''
- Flags:
The subtitle for this row.
New in version 1.0.