:right-sidebar: True WindowTitle =================================================================== .. currentmodule:: gi.repository.Adw .. class:: WindowTitle(**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` A helper widget for setting a window's title and subtitle. .. image:: https://gnome.pages.gitlab.gnome.org/libadwaita/doc/1-latest/window-title.png ``AdwWindowTitle`` shows a title and subtitle. It's intended to be used as the title child of :obj:`~gi.repository.Gtk.HeaderBar` or :obj:`~gi.repository.Adw.HeaderBar`\. CSS nodes -------------------------------------------------------------------------------- ``AdwWindowTitle`` has a single CSS node with name ``windowtitle``\. Constructors ------------ .. rst-class:: interim-class .. class:: WindowTitle :no-index: .. classmethod:: new(title: str, subtitle: str) -> ~gi.repository.Gtk.Widget Creates a new ``AdwWindowTitle``\. :param title: a title :param subtitle: a subtitle Methods ------- .. rst-class:: interim-class .. class:: WindowTitle :no-index: .. method:: get_subtitle() -> str Gets the subtitle of ``self``\. .. method:: get_title() -> str Gets the title of ``self``\. .. method:: set_subtitle(subtitle: str) -> None Sets the subtitle of ``self``\. The subtitle should give the user additional details. :param subtitle: a subtitle .. method:: set_title(title: str) -> None Sets the title of ``self``\. The title typically identifies the current view or content item, and generally does not use the application name. :param title: a title Properties ---------- .. rst-class:: interim-class .. class:: WindowTitle :no-index: .. attribute:: props.subtitle :type: str The type of the None singleton. .. attribute:: props.title :type: str The type of the None singleton.