Dee.FileResourceManager¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The primary path to to store and load resources from |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Dee.FileResourceManager(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new(primary_path)¶
- Parameters:
primary_path (
str
) – The primary path used to store and load resources. If you passNone
the manager will use a default path.- Returns:
A newly allocated
Dee.FileResourceManager
. Free withGObject.Object.unref
().- Return type:
Create a new
Dee.FileResourceManager
with its primary store- and load path set to primary_path.You can manually add fallback search paths by calling
Dee.FileResourceManager.add_search_path
().You normally don’t need to create you own resource managers. Instead you should call
Dee.ResourceManager.get_default
().
- add_search_path(path)¶
- Parameters:
path (
str
) – The path to add to the set of searched paths
Add a path to the set of paths searched for resources. The manager will first search the primary path as specified in the constructor and then search paths in the order they where added.
- get_primary_path()¶
- Returns:
The value of the
:primary-path
property- Return type:
Helper method to access the
:primary-path
property.