:right-sidebar: True WindowGroup =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: WindowGroup(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` :Constructors: :: WindowGroup(**properties) new() -> Gtk.WindowGroup Constructors ------------ .. rst-class:: interim-class .. class:: WindowGroup :no-index: .. classmethod:: new() -> ~gi.repository.Gtk.WindowGroup Creates a new ``GtkWindowGroup`` object. Modality of windows only affects windows within the same ``GtkWindowGroup``. Methods ------- .. rst-class:: interim-class .. class:: WindowGroup :no-index: .. method:: add_window(window: ~gi.repository.Gtk.Window) -> None Adds a window to a ``GtkWindowGroup``. :param window: the ``GtkWindow`` to add .. method:: list_windows() -> list[~gi.repository.Gtk.Window] Returns a list of the ``GtkWindows`` that belong to ``window_group``. .. method:: remove_window(window: ~gi.repository.Gtk.Window) -> None Removes a window from a ``GtkWindowGroup``. :param window: the ``GtkWindow`` to remove Fields ------ .. rst-class:: interim-class .. class:: WindowGroup :no-index: .. attribute:: parent_instance .. attribute:: priv