:right-sidebar: True ParamSpecVariant =================================================================== .. currentmodule:: gi.repository.GObject .. versionadded:: 2.26 .. class:: ParamSpecVariant(*args, **kwargs) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.ParamSpec` A :obj:`~gi.repository.GObject.ParamSpec` derived structure that contains the meta data for :obj:`~gi.repository.GLib.Variant` properties. When comparing values with :func:`~gi.repository.GObject.param_values_cmp`, scalar values with the same type will be compared with :func:`~gi.repository.GLib.Variant.compare`. Other non-:const:`None` variants will be checked for equality with :func:`~gi.repository.GLib.Variant.equal`, and their sort order is otherwise undefined. :const:`None` is ordered before non-:const:`None` variants. Two :const:`None` values compare equal. Fields ------ .. rst-class:: interim-class .. class:: ParamSpecVariant :no-index: .. attribute:: default_value A :obj:`~gi.repository.GLib.Variant`\, or :const:`None` .. attribute:: padding .. attribute:: parent_instance Private :obj:`~gi.repository.GObject.ParamSpec` portion .. attribute:: type A :obj:`~gi.repository.GLib.VariantType`\, or :const:`None`