mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2024-12-22 04:38:55 +00:00
Merge branch 'fix-python-docs' into 'master'
Improve Python examples See merge request GNOME/libsecret!144
This commit is contained in:
commit
337a0937fb
@ -53,11 +53,13 @@ var schema = new Secret.Schema.new("org.mock.Schema",
|
||||
In python use the standard introspection import mechanism to get at libsecret:
|
||||
|
||||
```python
|
||||
import gi
|
||||
gi.require_version("Secret", "1")
|
||||
from gi.repository import Secret
|
||||
|
||||
# ... and a here's sample line of code which uses the import
|
||||
schema = Secret.Schema.new("org.mock.Schema",
|
||||
Secret.SchemaFlags.NONE, { "name", Secret.SchemaAttributeType.STRING })
|
||||
Secret.SchemaFlags.NONE, { "name": Secret.SchemaAttributeType.STRING })
|
||||
```
|
||||
|
||||
## Vala: Compiling with libsecret
|
||||
|
Loading…
Reference in New Issue
Block a user