WindowTitle
-
class WindowTitle(**properties: Any)
Superclasses: Widget
, InitiallyUnowned
, Object
Implemented Interfaces: Accessible
, Buildable
, ConstraintTarget
A helper widget for setting a window’s title and subtitle.
AdwWindowTitle
shows a title and subtitle. It’s intended to be used as the
title child of HeaderBar
or HeaderBar
.
CSS nodes
AdwWindowTitle
has a single CSS node with name windowtitle
.
Constructors
-
class WindowTitle
-
classmethod new(title: str, subtitle: str) → Widget
Creates a new AdwWindowTitle
.
- Parameters:
title – a title
subtitle – a subtitle
Methods
-
class WindowTitle
-
get_subtitle() → str
Gets the subtitle of self
.
-
get_title() → str
Gets the title of self
.
-
set_subtitle(subtitle: str) → None
Sets the subtitle of self
.
The subtitle should give the user additional details.
- Parameters:
subtitle – a subtitle
-
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.
- Parameters:
title – a title
Properties
-
class WindowTitle
-
props.subtitle: str
The type of the None singleton.
-
props.title: str
The type of the None singleton.