Bamf.Application¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Bamf.Application(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- Returns:
True
if found,False
otherwise.- name:
the bus name
- object_path:
the object path
- Return type:
Used to fetch the bus name and the object path of the remote application menu.
Deprecated since version 0.5.0.
- get_desktop_file()¶
- Returns:
A string representing the path to the desktop file.
- Return type:
Used to fetch the path to the .desktop file associated with the passed application. If none exists, the result is
None
.
- Returns:
Whether the stubs should be shown.
- Return type:
Used to discover whether the application wants menu stubs shown.
- get_supported_mime_types()¶
- Returns:
A string array containing the supported mime-types.
- Return type:
[
str
]
- get_window_for_xid(xid)¶
- Parameters:
xid (
int
) – an X11 Window ID- Returns:
a
Bamf.Window
for the passed xid orNone
if not found.- Return type:
Used to fetch the application contains a Window with given xid.
New in version 0.5.2.
- get_windows()¶
- Returns:
A list of
Bamf.Window
's.- Return type:
Used to fetch all
Bamf.Window
's associated with the passedBamf.Application
.
- get_xids()¶
- Returns:
An array of xids.
- Return type:
[
int
]
Used to fetch all
Bamf.Window
's xids associated with the passedBamf.Application
.
Signal Details¶
- Bamf.Application.signals.desktop_file_updated(application, object)¶
- Signal Name:
desktop-file-updated
- Flags:
- Parameters:
application (
Bamf.Application
) – The object which received the signalobject (
str
) –
- Bamf.Application.signals.window_added(application, object)¶
- Signal Name:
window-added
- Flags:
- Parameters:
application (
Bamf.Application
) – The object which received the signalobject (
Bamf.Window
) –
- Bamf.Application.signals.window_removed(application, object)¶
- Signal Name:
window-removed
- Flags:
- Parameters:
application (
Bamf.Application
) – The object which received the signalobject (
Bamf.Window
) –