Gtk.WindowGroup

g GObject.Object GObject.Object Gtk.WindowGroup Gtk.WindowGroup GObject.Object->Gtk.WindowGroup

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

add_window (window)

list_windows ()

remove_window (window)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Gtk.WindowGroup(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Gtk.WindowGroupClass

GtkWindowGroup makes group of windows behave like separate applications.

It achieves this by limiting the effect of GTK grabs and modality to windows in the same group.

A window can be a member in at most one window group at a time. Windows that have not been explicitly assigned to a group are implicitly treated like windows of the default window group.

GtkWindowGroup objects are referenced by each window in the group, so once you have added all windows to a GtkWindowGroup, you can drop the initial reference to the window group with GObject.Object.unref(). If the windows in the window group are subsequently destroyed, then they will be removed from the window group and drop their references on the window group; when all window have been removed, the window group will be freed.

classmethod new()[source]
Returns:

a new GtkWindowGroup.

Return type:

Gtk.WindowGroup

Creates a new GtkWindowGroup object.

Modality of windows only affects windows within the same GtkWindowGroup.

add_window(window)[source]
Parameters:

window (Gtk.Window) – the GtkWindow to add

Adds a window to a GtkWindowGroup.

list_windows()[source]
Returns:

A newly-allocated list of windows inside the group.

Return type:

[Gtk.Window]

Returns a list of the GtkWindows that belong to self.

remove_window(window)[source]
Parameters:

window (Gtk.Window) – the GtkWindow to remove

Removes a window from a GtkWindowGroup.