Gio.SimplePermission¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gio.SimplePermission(**kwargs)¶
- Bases:
- Abstract:
No
GSimplePermission
is a trivial implementation of [class`Gio`.Permission] that represents a permission that is either always or never allowed. The value is given at construction and doesn’t change.Calling [method`Gio`.Permission.acquire] or [method`Gio`.Permission.release] on a
GSimplePermission
will result in errors.- classmethod new(allowed)[source]¶
- Parameters:
- Returns:
the
Gio.SimplePermission
, as aGio.Permission
- Return type:
Creates a new
Gio.Permission
instance that represents an action that is either always or never allowed.New in version 2.26.