Panel.Settings¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The identifier used to unique’ify this settings instance |
||
r/w/co |
The path to use for for app settings |
||
r/w/co |
A path prefix to preprend when generating schema paths |
||
r/w/co |
A path suffix to append when generating schema paths |
||
r/w/co |
Schema ID |
||
r/w/co |
The prefix for schema-ids used when generating paths |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Class Details¶
- class Panel.Settings(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(identifier, schema_id)¶
- Parameters:
- Return type:
- classmethod new_relocatable(identifier, schema_id, schema_id_prefix, path_prefix, path_suffix)¶
- classmethod new_with_path(identifier, schema_id, path)¶
- Parameters:
- Return type:
- classmethod resolve_schema_path(schema_id_prefix, schema_id, identifier, path_prefix, path_suffix)¶
- bind(key, object, property, flags)¶
- Parameters:
key (
str
) –property (
str
) –flags (
Gio.SettingsBindFlags
) –
- bind_with_mapping(key, object, property, flags, get_mapping, set_mapping, *user_data)¶
- Parameters:
key (
str
) – The settings keyproperty (
str
) – the property of object to bind toflags (
Gio.SettingsBindFlags
) – flags for the bindingget_mapping (
Gio.SettingsBindGetMapping
orNone
) – variant to value mappingset_mapping (
Gio.SettingsBindSetMapping
orNone
) – value to variant mappinguser_data (
object
orNone
) – user data for get_mapping and set_mapping
Like
Panel.Settings.bind
() but allows transforming to and from settings storage using get_mapping and set_mapping transformation functions.Call
Panel.Settings.unbind
() to unbind the mapping.
- get_user_value(key)¶
- Parameters:
key (
str
) – the key to get the user value for- Returns:
the user’s value, if set
- Return type:
GLib.Variant
orNone
- set_value(key, value)¶
- Parameters:
key (
str
) –value (
GLib.Variant
) –
Signal Details¶
- Panel.Settings.signals.changed(settings, object)¶
- Signal Name:
changed
- Flags:
- Parameters:
settings (
Panel.Settings
) – The object which received the signalobject (
str
) –
Property Details¶
- Panel.Settings.props.identifier¶
- Name:
identifier
- Type:
- Default Value:
- Flags:
The “identifier” property is used to make unique paths.
This might be a unique “project-id” for example, in an IDE.
- Panel.Settings.props.path¶
- Name:
path
- Type:
- Default Value:
- Flags:
The path to use for for app settings
- Panel.Settings.props.path_prefix¶
- Name:
path-prefix
- Type:
- Default Value:
- Flags:
A path prefix to preprend when generating schema paths
- Panel.Settings.props.path_suffix¶
- Name:
path-suffix
- Type:
- Default Value:
- Flags:
A path suffix to append when generating schema paths
- Panel.Settings.props.schema_id¶
- Name:
schema-id
- Type:
- Default Value:
- Flags:
Schema ID