:right-sidebar: True Separator =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: Separator(**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` ``GtkSeparator`` is a horizontal or vertical separator widget. .. image:: https://docs.gtk.org/gtk4/separator.png A ``GtkSeparator`` can be used to group the widgets within a window. It displays a line with a shadow to make it appear sunken into the interface. CSS nodes --------- ``GtkSeparator`` has a single CSS node with name separator. The node gets one of the .horizontal or .vertical style classes. Accessibility ------------- ``GtkSeparator`` uses the :const:`~gi.repository.Gtk.AccessibleRole.SEPARATOR` role. Constructors ------------ .. rst-class:: interim-class .. class:: Separator :no-index: .. classmethod:: new(orientation: ~gi.repository.Gtk.Orientation) -> ~gi.repository.Gtk.Widget Creates a new ``GtkSeparator`` with the given orientation. :param orientation: the separator’s orientation.