ApplicationWindow#
- class ApplicationWindow(*args, **kwargs)#
Superclasses: ApplicationWindow
, Window
, Widget
, InitiallyUnowned
, Object
Implemented Interfaces: ActionGroup
, ActionMap
, Accessible
, Buildable
, ConstraintTarget
, Native
, Root
, ShortcutManager
A freeform application window.

AdwApplicationWindow
is a ApplicationWindow
subclass providing
the same features as Window
.
See Window
for details.
Example of an AdwApplicationWindow
UI definition:
<object class="AdwApplicationWindow">
<property name="content">
<object class="AdwToolbarView">
<child type="top">
<object class="AdwHeaderBar"/>
</child>
<property name="content">
<!-- ... -->
</property>
</object>
</property>
</object>
Using menubar
is not supported and may result in
visual glitches.
Constructors#
- class ApplicationWindow
- classmethod new(app: Application) Widget #
Creates a new
AdwApplicationWindow
forapp
.- Parameters:
app – an application instance
Methods#
- class ApplicationWindow
- add_breakpoint(breakpoint: Breakpoint) None #
Adds
breakpoint
toself
.Added in version 1.4.
- Parameters:
breakpoint – the breakpoint to add
- get_content() Widget | None #
Gets the content widget of
self
.This method should always be used instead of
get_child
.
- get_current_breakpoint() Breakpoint | None #
Gets the current breakpoint.
Added in version 1.4.
- get_dialogs() ListModel #
Returns a
ListModel
that contains the open dialogs ofself
.This can be used to keep an up-to-date view.
Added in version 1.5.
Properties#
- class ApplicationWindow
-
- props.current_breakpoint: Breakpoint#
The type of the None singleton.
Added in version 1.4.
Fields#
- class ApplicationWindow
- parent_instance#