:right-sidebar: True ApplicationInfo =================================================================== .. currentmodule:: gi.repository.WebKit .. class:: ApplicationInfo(**kwargs) :no-contents-entry: Information about an application running in automation mode. Constructors ------------ .. rst-class:: interim-class .. class:: ApplicationInfo :no-index: .. classmethod:: new() -> ~gi.repository.WebKit.ApplicationInfo Creates a new :obj:`~gi.repository.WebKit.ApplicationInfo` .. versionadded:: 2.18 Methods ------- .. rst-class:: interim-class .. class:: ApplicationInfo :no-index: .. method:: get_name() -> str Get the name of the application. If :func:`~gi.repository.WebKit.ApplicationInfo.set_name` hasn't been called with a valid name, this returns :func:`~gi.repository.GLib.get_prgname`. .. versionadded:: 2.18 .. method:: get_version() -> ~typing.Tuple[int, int, int] Get the application version previously set with :func:`~gi.repository.WebKit.ApplicationInfo.set_version`. .. versionadded:: 2.18 .. method:: set_name(name: str) -> None Set the name of the application. If not provided, or :const:`None` is passed, :func:`~gi.repository.GLib.get_prgname` will be used. .. versionadded:: 2.18 :param name: the application name .. method:: set_version(major: int, minor: int, micro: int) -> None Set the application version. If the application doesn't use the format major.minor.micro you can pass 0 as the micro to use major.minor, or pass 0 as both micro and minor to use only major number. Any other format must be converted to major.minor.micro so that it can be used in version comparisons. .. versionadded:: 2.18 :param major: the major version number :param minor: the minor version number :param micro: the micro version number