:right-sidebar: True Scrollbar =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: Scrollbar(**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.AccessibleRange`, :class:`~gi.repository.Gtk.Buildable`, :class:`~gi.repository.Gtk.ConstraintTarget`, :class:`~gi.repository.Gtk.Orientable` :Constructors: :: Scrollbar(**properties) new(orientation:Gtk.Orientation, adjustment:Gtk.Adjustment=None) -> Gtk.Widget Constructors ------------ .. rst-class:: interim-class .. class:: Scrollbar :no-index: .. classmethod:: new(orientation: ~gi.repository.Gtk.Orientation, adjustment: ~gi.repository.Gtk.Adjustment | None = None) -> ~gi.repository.Gtk.Widget Creates a new scrollbar with the given orientation. :param orientation: the scrollbar’s orientation. :param adjustment: the :obj:`~gi.repository.Gtk.Adjustment` to use, or :const:`None` to create a new adjustment. Methods ------- .. rst-class:: interim-class .. class:: Scrollbar :no-index: .. method:: get_adjustment() -> ~gi.repository.Gtk.Adjustment Returns the scrollbar's adjustment. .. method:: set_adjustment(adjustment: ~gi.repository.Gtk.Adjustment | None = None) -> None Makes the scrollbar use the given adjustment. :param adjustment: the adjustment to set Properties ---------- .. rst-class:: interim-class .. class:: Scrollbar :no-index: .. attribute:: props.adjustment :type: ~gi.repository.Gtk.Adjustment The ``GtkAdjustment`` controlled by this scrollbar.