:right-sidebar: True VariantType =================================================================== .. currentmodule:: gi.repository.GObject .. class:: VariantType(**kwargs) :no-contents-entry: :Constructors: :: new(type_string:str) -> GLib.VariantType new_array(element:GLib.VariantType) -> GLib.VariantType new_dict_entry(key:GLib.VariantType, value:GLib.VariantType) -> GLib.VariantType new_maybe(element:GLib.VariantType) -> GLib.VariantType new_tuple(items:list) -> GLib.VariantType Constructors ------------ .. rst-class:: interim-class .. class:: VariantType :no-index: .. classmethod:: new(type_string: str) -> ~gi.repository.GLib.VariantType :param type_string: .. classmethod:: new_array(element: ~gi.repository.GLib.VariantType) -> ~gi.repository.GLib.VariantType :param element: .. classmethod:: new_dict_entry(key: ~gi.repository.GLib.VariantType, value: ~gi.repository.GLib.VariantType) -> ~gi.repository.GLib.VariantType :param key: :param value: .. classmethod:: new_maybe(element: ~gi.repository.GLib.VariantType) -> ~gi.repository.GLib.VariantType :param element: .. classmethod:: new_tuple(items: ~typing.Sequence[~gi.repository.GLib.VariantType]) -> ~gi.repository.GLib.VariantType :param items: Methods ------- .. rst-class:: interim-class .. class:: VariantType :no-index: .. method:: checked_(type_string: str) -> ~gi.repository.GLib.VariantType :param type_string: .. method:: dup_string() -> str .. method:: element() -> ~gi.repository.GLib.VariantType .. method:: equal(type2: ~gi.repository.GLib.VariantType) -> bool :param type2: .. method:: first() -> ~gi.repository.GLib.VariantType .. method:: free() -> None .. method:: get_string_length() -> int .. method:: hash() -> int .. method:: is_array() -> bool .. method:: is_basic() -> bool .. method:: is_container() -> bool .. method:: is_definite() -> bool .. method:: is_dict_entry() -> bool .. method:: is_maybe() -> bool .. method:: is_subtype_of(supertype: ~gi.repository.GLib.VariantType) -> bool :param supertype: .. method:: is_tuple() -> bool .. method:: is_variant() -> bool .. method:: key() -> ~gi.repository.GLib.VariantType .. method:: n_items() -> int .. method:: next() -> ~gi.repository.GLib.VariantType .. method:: string_get_depth_(type_string: str) -> int :param type_string: .. method:: string_is_valid(type_string: str) -> bool :param type_string: .. method:: string_scan(string: str, limit: str | None = None) -> tuple[bool, str] :param string: :param limit: .. method:: value() -> ~gi.repository.GLib.VariantType