GtkStackSidebar

A gtk.stack_sidebar.StackSidebar uses a sidebar to switch between gtk.stack.Stack pages.

In order to use a gtk.stack_sidebar.StackSidebar, you simply use a gtk.stack.Stack to organize your UI flow, and add the sidebar to your sidebar area. You can use gtk.stack_sidebar.StackSidebar.setStack to connect the gtk.stack_sidebar.StackSidebar to the gtk.stack.Stack.

CSS nodes

gtk.stack_sidebar.StackSidebar has a single CSS node with name stacksidebar and style class .sidebar.

When circumstances require it, gtk.stack_sidebar.StackSidebar adds the .needs-attention style class to the widgets representing the stack pages.

struct GtkStackSidebar