ApplicationInfo#

class ApplicationInfo(**kwargs)#

Information about an application running in automation mode.

Constructors#

class ApplicationInfo
classmethod new() ApplicationInfo#

Creates a new ApplicationInfo

Added in version 2.18.

Methods#

class ApplicationInfo
get_name() str#

Get the name of the application.

If set_name() hasn’t been called with a valid name, this returns get_prgname().

Added in version 2.18.

get_version() Tuple[int, int, int]#

Get the application version previously set with set_version().

Added in version 2.18.

set_name(name: str) None#

Set the name of the application.

If not provided, or None is passed, get_prgname() will be used.

Added in version 2.18.

Parameters:

name – the application name

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.

Added in version 2.18.

Parameters:
  • major – the major version number

  • minor – the minor version number

  • micro – the micro version number