ApplicationWindow

class ApplicationWindow(*args, **kwargs)

Superclasses: Window, Widget, InitiallyUnowned, Object

Implemented Interfaces: ActionGroup, ActionMap, Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager

Constructors:

ApplicationWindow(**properties)
new(application:Gtk.Application) -> Gtk.Widget

Constructors

class ApplicationWindow
classmethod new(application: Application) Widget

Creates a new GtkApplicationWindow.

Parameters:

application – a GtkApplication

Methods

class ApplicationWindow
get_help_overlay() ShortcutsWindow | None

Gets the GtkShortcutsWindow that is associated with window.

See set_help_overlay.

get_id() int

Returns the unique ID of the window.

If the window has not yet been added to a GtkApplication, returns 0.

get_show_menubar() bool

Returns whether the window will display a menubar for the app menu and menubar as needed.

set_help_overlay(help_overlay: ShortcutsWindow | None = None) None

Associates a shortcuts window with the application window.

Additionally, sets up an action with the name win.show-help-overlay to present it.

window takes responsibility for destroying help_overlay.

Parameters:

help_overlay – a GtkShortcutsWindow

set_show_menubar(show_menubar: bool) None

Sets whether the window will display a menubar for the app menu and menubar as needed.

Parameters:

show_menubar – whether to show a menubar when needed

Properties

class ApplicationWindow
props.show_menubar: bool

If this property is True, the window will display a menubar unless it is shown by the desktop shell.

See set_menubar.

If False, the window will not display a menubar, regardless of whether the desktop shell is showing it or not.

Fields

class ApplicationWindow
parent_instance