XApp.GtkWindow

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Bin Gtk.Bin Gtk.Window Gtk.Window Gtk.Bin->Gtk.Window Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Bin Gtk.Widget->Gtk.Container XApp.GtkWindow XApp.GtkWindow Gtk.Window->XApp.GtkWindow

Subclasses:

XApp.IconChooserDialog

Methods

Inherited:

Gtk.Window (119), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new (type)

set_icon_from_file (file_name)

set_icon_name (icon_name)

set_progress (progress)

set_progress_pulse (pulse)

Virtual Methods

Inherited:

Gtk.Window (5), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

Gtk.Window (33), Gtk.Container (3), Gtk.Widget (39)

Style Properties

Inherited:

Gtk.Window (2), Gtk.Widget (17)

Signals

Inherited:

Gtk.Window (5), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Fields

Inherited:

Gtk.Window (5), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Type

Access

Description

parent_instance

Gtk.Window

r

Class Details

class XApp.GtkWindow(*args, **kwargs)
Bases:

Gtk.Window

Abstract:

No

Structure:

XApp.GtkWindowClass

classmethod new(type)
Parameters:

type (Gtk.WindowType) – The Gtk.WindowType to use

Returns:

A new XApp.GtkWindow (transfer: full)

Return type:

Gtk.Widget

Creates a new XApp.GtkWindow of type type. See Gtk.Window.new() for more details.

set_icon_from_file(file_name)
Parameters:

file_name (str or None) – The icon path to set, or None to unset.

Raises:

GLib.Error

Sets the icon name hint for a window manager (like muffin) to make available when applications want to change their icons during runtime without having to resort to the internal low-res pixbufs that Gdk.Window sets on the client side. This also chains up and calls Gtk.Window.set_icon_from_file for convenience and compatibility. Set to None to unset.

set_icon_name(icon_name)
Parameters:

icon_name (str or None) – The icon name or path to set, or None to unset.

Sets the icon name hint for a window manager (like muffin) to make available when applications want to change their icons during runtime without having to resort to the internal low-res pixbufs that Gdk.Window sets on the client side. This also chains up and calls Gtk.Window.set_icon_name for convenience and compatibility. Set to None to unset.

set_progress(progress)
Parameters:

progress (int) – The value to set for progress.

Sets the progress hint for a window manager (like muffin) to make available when applications want to display the application’s progress in some operation. The value sent to the WM will be clamped to between 0 and 100.

Note: If a window will stick around after progress is complete, you will probably need to set progress to 0 to remove any progress effects on taskbars and window lists.

Setting progress will also cancel the ‘pulsing’ flag on the window as well, if it has been set.

set_progress_pulse(pulse)
Parameters:

pulse (bool) – Whether to have pulsing set or not.

Sets the progress pulse hint hint for a window manager (like muffin) to make available when applications want to display indeterminate or ongoing progress in a task manager.

Note: If a window will stick around after progress is complete, you will probably need to set progress to 0 to remove any progress effects on taskbars and window lists. This will also remove the pulse state, if it is set.

Setting an explicit progress value will unset this flag.