:right-sidebar: True StackSwitcher =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: StackSwitcher(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.Widget`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gtk.Accessible`, :class:`~gi.repository.Gtk.Buildable`, :class:`~gi.repository.Gtk.ConstraintTarget`, :class:`~gi.repository.Gtk.Orientable` :Constructors: :: StackSwitcher(**properties) new() -> Gtk.Widget Constructors ------------ .. rst-class:: interim-class .. class:: StackSwitcher :no-index: .. classmethod:: new() -> ~gi.repository.Gtk.Widget Create a new ``GtkStackSwitcher``. Methods ------- .. rst-class:: interim-class .. class:: StackSwitcher :no-index: .. method:: get_stack() -> ~gi.repository.Gtk.Stack | None Retrieves the stack. .. method:: set_stack(stack: ~gi.repository.Gtk.Stack | None = None) -> None Sets the stack to control. :param stack: a ``GtkStack`` Properties ---------- .. rst-class:: interim-class .. class:: StackSwitcher :no-index: .. attribute:: props.stack :type: ~gi.repository.Gtk.Stack The stack.