Handy.TabPage¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The child of the page |
||
r/w/en |
The icon of the page |
||
r/w/en |
Whether the indicator icon is activatable |
||
r/w/en |
An indicator icon for the page |
||
r/w/en |
Whether the page is loading |
||
r/w/en |
Whether the page needs attention |
||
r/w/co/en |
The parent page of the page |
||
r/en |
Whether the page is pinned |
||
r/en |
Whether the page is selected |
||
r/w/en |
The title of the page |
||
r/w/en |
The tooltip of the page |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Handy.TabPage(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An auxiliary class used by [class`TabView`].
New in version 1.2.
- get_child()¶
- Returns:
the child of self
- Return type:
Gets the child of self.
New in version 1.2.
- get_icon()¶
-
Gets the icon of self.
New in version 1.2.
- get_indicator_activatable()¶
- Returns:
whether the indicator is activatable
- Return type:
Gets whether the indicator of self is activatable.
New in version 1.2.
- get_indicator_icon()¶
-
Gets the indicator icon of self.
New in version 1.2.
- get_loading()¶
- Returns:
whether self is loading
- Return type:
Gets whether self is loading.
New in version 1.2.
- get_needs_attention()¶
- Returns:
whether self needs attention
- Return type:
Gets whether self needs attention.
New in version 1.2.
- get_parent()¶
- Returns:
the parent page of self
- Return type:
Gets the parent page of self.
New in version 1.2.
- get_pinned()¶
- Returns:
whether self is pinned
- Return type:
Gets whether self is pinned.
New in version 1.2.
- get_selected()¶
- Returns:
whether self is selected
- Return type:
Gets whether self is selected.
New in version 1.2.
- get_title()¶
-
Gets the title of self.
New in version 1.2.
- get_tooltip()¶
-
Gets the tooltip of self.
New in version 1.2.
- set_icon(icon)¶
-
Sets the icon of self.
New in version 1.2.
- set_indicator_activatable(activatable)¶
- Parameters:
activatable (
bool
) – whether the indicator is activatable
Sets whether the indicator of self is activatable.
New in version 1.2.
- set_indicator_icon(indicator_icon)¶
-
Sets the indicator icon of self.
New in version 1.2.
- set_loading(loading)¶
- Parameters:
loading (
bool
) – whether self is loading
Sets whether self is loading.
New in version 1.2.
- set_needs_attention(needs_attention)¶
- Parameters:
needs_attention (
bool
) – whether self needs attention
Sets whether self needs attention.
New in version 1.2.
- set_title(title)¶
-
Sets the title of self.
New in version 1.2.
Property Details¶
- Handy.TabPage.props.child¶
- Name:
child
- Type:
- Default Value:
- Flags:
The child of the page.
New in version 1.2.
- Handy.TabPage.props.icon¶
- Name:
icon
- Type:
- Default Value:
- Flags:
The icon of the page.
[class`TabBar`] displays the icon next to the title.
It will not show the icon if [property`TabPage`:py:data::loading<Handy.TabPage.props.loading>] is set to
TRUE
, or if the page is pinned and [propertyTabPage:indicator-icon] is set.New in version 1.2.
- Handy.TabPage.props.indicator_activatable¶
- Name:
indicator-activatable
- Type:
- Default Value:
- Flags:
Whether the indicator icon is activatable.
If set to
TRUE
, [signal`TabView`:py:func:::indicator-activated<Handy.TabPage.signals.indicator_activated>] will be emitted when the indicator icon is clicked.If [property`TabPage`:py:data::indicator-icon<Handy.TabPage.props.indicator_icon>] is not set, does nothing.
New in version 1.2.
- Handy.TabPage.props.indicator_icon¶
- Name:
indicator-icon
- Type:
- Default Value:
- Flags:
An indicator icon for the page.
A common use case is an audio or camera indicator in a web browser.
[class`TabPage`] will show it at the beginning of the tab, alongside icon representing [property`TabPage`:py:data::icon<Handy.TabPage.props.icon>] or loading spinner.
If the page is pinned, the indicator will be shown instead of icon or spinner.
If [property`TabPage`:py:data::indicator-activatable<Handy.TabPage.props.indicator_activatable>] is set to
TRUE
, the indicator icon can act as a button.New in version 1.2.
- Handy.TabPage.props.loading¶
- Name:
loading
- Type:
- Default Value:
- Flags:
Whether the page is loading.
If set to
TRUE
, [class`TabBar`] will display a spinner in place of icon.If the page is pinned and [property`TabPage`:py:data::indicator-icon<Handy.TabPage.props.indicator_icon>] is set, the loading status will not be visible.
New in version 1.2.
- Handy.TabPage.props.needs_attention¶
- Name:
needs-attention
- Type:
- Default Value:
- Flags:
Whether the page needs attention.
[class`TabBar`] will display a glow under the tab representing the page if set to
TRUE
. If the tab is not visible, the corresponding edge of the tab bar will be highlighted.New in version 1.2.
- Handy.TabPage.props.parent¶
- Name:
parent
- Type:
- Default Value:
- Flags:
The parent page of the page.
See [method`TabView`.add_page] and [method`TabView`.close_page].
New in version 1.2.
- Handy.TabPage.props.pinned¶
- Name:
pinned
- Type:
- Default Value:
- Flags:
Whether the page is pinned.
See [method`TabView`.set_page_pinned].
New in version 1.2.
- Handy.TabPage.props.selected¶
- Name:
selected
- Type:
- Default Value:
- Flags:
Whether the page is selected.
New in version 1.2.
- Handy.TabPage.props.title¶
- Name:
title
- Type:
- Default Value:
- Flags:
The title of the page.
[class`TabBar`] will display it in the center of the tab unless it’s pinned, and will use it as a tooltip unless [property`TabPage`:py:data::tooltip<Handy.TabPage.props.tooltip>] is set.
New in version 1.2.
- Handy.TabPage.props.tooltip¶
- Name:
tooltip
- Type:
- Default Value:
- Flags:
The tooltip of the page.
The tooltip can be marked up with the Pango text markup language.
If not set, [class`TabBar`] will use [property`TabPage`:py:data::title<Handy.TabPage.props.title>] as a tooltip instead.
New in version 1.2.