AppStreamGlib.Launchable¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class AppStreamGlib.Launchable(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod kind_from_string(kind)[source]¶
- Parameters:
kind (
str
) – the string.- Returns:
a
AppStreamGlib.LaunchableKind
, orAppStreamGlib.LaunchableKind.UNKNOWN
for unknown.- Return type:
Converts the text representation to an enumerated value.
New in version 0.6.13.
- classmethod kind_to_string(kind)[source]¶
- Parameters:
kind (
AppStreamGlib.LaunchableKind
) – theAppStreamGlib.LaunchableKind
.- Returns:
string version of kind
- Return type:
Converts the enumerated value to an text representation.
New in version 0.6.13.
- classmethod new()[source]¶
- Returns:
- Return type:
Creates a new
AppStreamGlib.Launchable
.New in version 0.6.13.
- get_value()[source]¶
- Returns:
usually a desktop ID, e.g. “gimp.desktop”
- Return type:
Gets the value to use for the launchable.
New in version 0.6.13.
- set_kind(kind)[source]¶
- Parameters:
kind (
AppStreamGlib.LaunchableKind
) – theAppStreamGlib.LaunchableKind
, e.g.AppStreamGlib.LaunchableKind.DESKTOP_ID
.
Sets the launchable kind.
New in version 0.6.13.