Gtk.StackSwitcher

inheritance9479855624 GObject.GInterface GObject.GInterface Atk.ImplementorIface Atk.ImplementorIface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget Gtk.Buildable->Gtk.Widget Gtk.Box Gtk.Box Gtk.Orientable->Gtk.Box GObject.Object GObject.Object GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.Object->GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget Gtk.Container Gtk.Container Gtk.Widget->Gtk.Container Gtk.Container->Gtk.Box Gtk.StackSwitcher Gtk.StackSwitcher Gtk.Box->Gtk.StackSwitcher

Example

../_images/Gtk.StackSwitcher.png

Properties

Inherited:Gtk.Box (3), Gtk.Container (3), Gtk.Widget (38), Gtk.Orientable (1)
Name Type Flags Short Description
stack Gtk.Stack r/w/c Stack

Child Properties

Inherited:Gtk.Box (5)

Fields

Inherited:Gtk.Box (1), Gtk.Container (1), Gtk.Widget (1), GObject.InitiallyUnowned (3), GObject.Object (3)
Name Type Access Description
widget Gtk.Box r  

Class Details

class Gtk.StackSwitcher(homogeneous=False, spacing=0, **kwds)

Bases: Gtk.Box

The Gtk.StackSwitcher widget acts as a controller for a Gtk.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.

It is possible to associate multiple Gtk.StackSwitcher widgets with the same stack widget.

The Gtk.StackSwitcher widget was added in 3.10.

static new()
Returns:a new Gtk.StackSwitcher.
Return type:Gtk.Widget

Create a new Gtk.StackSwitcher.

New in version 3.10.

get_stack()
Returns:the stack, or None if none has been set explicitly.
Return type:Gtk.Stack

Retrieves the stack. See Gtk.StackSwitcher.set_stack ().

New in version 3.10.

set_stack(stack)
Parameters:stack (Gtk.Stack or None) – a Gtk.Stack

Sets the stack to control.

New in version 3.10.

Property Details

Gtk.StackSwitcher.props.stack
Name:stack
Type:Gtk.Stack
Default Value:None
Flags:r/w/c

Stack