AppStream.Context¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class AppStream.Context(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
- Return type:
Creates a new
AppStream.Context
.
- get_format_version()¶
- Returns:
The AppStream format version.
- Return type:
- get_style()¶
- Returns:
The document style.
- Return type:
- get_value_flags()¶
- Returns:
The
AppStream.ValueFlags
that are set on cpt.- Return type:
- set_filename(fname)¶
- Parameters:
fname (
str
) – the new file name.
Sets the file name we are loading data from.
- set_format_version(ver)¶
- Parameters:
ver (
AppStream.FormatVersion
) – the new format version.
Sets the AppStream format version.
- set_locale(locale)¶
-
Sets the active locale. If the magic value “ALL” is used, the current system locale will be used for data reading, but when writing data all locale will be written.
- set_style(style)¶
- Parameters:
style (
AppStream.FormatStyle
) – the new document style.
Sets the AppStream document style.
- set_value_flags(flags)¶
- Parameters:
flags (
AppStream.ValueFlags
) –AppStream.ValueFlags
to set on cpt.