:right-sidebar: True SimplePermission =================================================================== .. currentmodule:: gi.repository.Gio .. class:: SimplePermission(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gio.Permission`, :class:`~gi.repository.GObject.Object` ``GSimplePermission`` is a trivial implementation of :obj:`~gi.repository.Gio.Permission` that represents a permission that is either always or never allowed. The value is given at construction and doesn’t change. Calling :obj:`~gi.repository.Gio.Permission.acquire` or :obj:`~gi.repository.Gio.Permission.release` on a ``GSimplePermission`` will result in errors. Constructors ------------ .. rst-class:: interim-class .. class:: SimplePermission :no-index: .. classmethod:: new(allowed: bool) -> ~gi.repository.Gio.Permission Creates a new :obj:`~gi.repository.Gio.Permission` instance that represents an action that is either always or never allowed. .. versionadded:: 2.26 :param allowed: :const:`True` if the action is allowed