XApp.GtkWindow¶
- Subclasses:
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 |
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Style Properties¶
- Inherited:
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 |
r |
Class Details¶
- class XApp.GtkWindow(*args, **kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(type)¶
- Parameters:
type (
Gtk.WindowType
) – TheGtk.WindowType
to use- Returns:
A new
XApp.GtkWindow
(transfer: full)- Return type:
Creates a new
XApp.GtkWindow
of type type. SeeGtk.Window.new
() for more details.
- set_icon_from_file(file_name)¶
-
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 toNone
to unset.
- set_icon_name(icon_name)¶
-
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 toNone
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.