Adw.TabButton¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Actionable (5)
- Structs:
class |
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted to animate press then release. |
|
Emitted when the button has been activated (pressed and released). |
Fields¶
- Inherited:
Class Details¶
- class Adw.TabButton(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A button that displays the number of [class`TabView`] pages.
<picture> <source srcset=”tab-button-dark.png” media=”(prefers-color-scheme: dark)”> <img src=”tab-button.png” alt=”tab-button”> </picture>
AdwTabButton
is a button that displays the number of pages in a givenAdwTabView
, as well as whether one of the inactive pages needs attention.It’s intended to be used as a visible indicator when there’s no visible tab bar, typically opening an [class`TabOverview`] on click, e.g. via the
overview.open
action name:``xml <object class=”AdwTabButton”>
<property name=”view”>view</property> <property name=”action-name”>overview.open</property>
</object> ``
- CSS nodes
AdwTabButton
has a main CSS node with nametabbutton
.- Accessibility
AdwTabButton
uses theGTK_ACCESSIBLE_ROLE_BUTTON
role.New in version 1.3.
- classmethod new()¶
- Returns:
the newly created
AdwTabButton
- Return type:
Creates a new
AdwTabButton
.New in version 1.3.
- get_view()¶
- Returns:
the tab view
- Return type:
Adw.TabView
orNone
Gets the tab view self displays.
New in version 1.3.
- set_view(view)¶
- Parameters:
view (
Adw.TabView
orNone
) – a tab view
Sets the tab view to display.
New in version 1.3.
Signal Details¶
- Adw.TabButton.signals.activate(tab_button)¶
- Signal Name:
activate
- Flags:
- Parameters:
tab_button (
Adw.TabButton
) – The object which received the signal
Emitted to animate press then release.
This is an action signal. Applications should never connect to this signal, but use the [signal`TabButton`:py:func:::clicked<Adw.TabButton.signals.clicked>] signal.
New in version 1.3.
- Adw.TabButton.signals.clicked(tab_button)¶
- Signal Name:
clicked
- Flags:
- Parameters:
tab_button (
Adw.TabButton
) – The object which received the signal
Emitted when the button has been activated (pressed and released).
New in version 1.3.
Property Details¶
- Adw.TabButton.props.view¶
- Name:
view
- Type:
- Default Value:
- Flags:
The view the tab button displays.
New in version 1.3.