Gtk.StackSwitcher¶
Example¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
Symbolic size to use for named icon |
||
r/w/c |
Stack |
Child Properties¶
- Inherited:
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
widget |
r |
Class Details¶
- class Gtk.StackSwitcher(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
The
Gtk.StackSwitcher
widget acts as a controller for aGtk.Stack
; it shows a row of buttons to switch between the various pages of the associated stack widget.All the content for the buttons comes from the child properties of the
Gtk.Stack
; the button visibility in aGtk.StackSwitcher
widget is controlled by the visibility of the child in theGtk.Stack
.It is possible to associate multiple
Gtk.StackSwitcher
widgets with the sameGtk.Stack
widget.The
Gtk.StackSwitcher
widget was added in 3.10.- CSS nodes
Gtk.StackSwitcher
has a single CSS node named stackswitcher and style class .stack-switcher.When circumstances require it,
Gtk.StackSwitcher
adds the .needs-attention style class to the widgets representing the stack pages.- classmethod new()[source]¶
- Returns:
a new
Gtk.StackSwitcher
.- Return type:
Create a new
Gtk.StackSwitcher
.New in version 3.10.
- get_stack()[source]¶
-
Retrieves the stack. See
Gtk.StackSwitcher.set_stack
().New in version 3.10.
Property Details¶
- Gtk.StackSwitcher.props.icon_size¶
- Name:
icon-size
- Type:
- Default Value:
1
- Flags:
Use the “icon-size” property to change the size of the image displayed when a
Gtk.StackSwitcher
is displaying icons.New in version 3.20.