:right-sidebar: True TabButton =================================================================== .. currentmodule:: gi.repository.Adw .. versionadded:: 1.3 .. class:: TabButton(**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.Actionable`, :class:`~gi.repository.Gtk.Buildable`, :class:`~gi.repository.Gtk.ConstraintTarget` :Constructors: :: TabButton(**properties) new() -> Gtk.Widget Constructors ------------ .. rst-class:: interim-class .. class:: TabButton :no-index: .. classmethod:: new() -> ~gi.repository.Gtk.Widget Creates a new ``AdwTabButton``. .. versionadded:: 1.3 Methods ------- .. rst-class:: interim-class .. class:: TabButton :no-index: .. method:: get_view() -> ~gi.repository.Adw.TabView | None Gets the tab view ``self`` displays. .. versionadded:: 1.3 .. method:: set_view(view: ~gi.repository.Adw.TabView | None = None) -> None Sets the tab view to display. .. versionadded:: 1.3 :param view: a tab view Properties ---------- .. rst-class:: interim-class .. class:: TabButton :no-index: .. attribute:: props.view :type: ~gi.repository.Adw.TabView The view the tab button displays. .. versionadded:: 1.3 Signals ------- .. rst-class:: interim-class .. class:: TabButton.signals :no-index: .. method:: activate() -> None Emitted to animate press then release. This is an action signal. Applications should never connect to this signal, but use the :obj:`~gi.repository.Adw.TabButton.signals.clicked` signal. .. versionadded:: 1.3 .. method:: clicked() -> None Emitted when the button has been activated (pressed and released). .. versionadded:: 1.3