src.themerr.settings#

class src.themerr.settings.Settings[source]#

Bases: object

Settings class to access addon settings.

This class is used to access addon settings.

Examples

>>> addon_settings = Settings()
Attributes:
addonxbmcaddon.Addon

addon instance

Methods

dev_mode()

Get the dev mode setting.

theme_timeout()

Get the theme timeout setting.

dev_mode() bool[source]#

Get the dev mode setting.

Get the dev mode setting from the addon settings.

Returns:
bool

The dev mode setting.

Examples

>>> addon_settings = Settings()
>>> addon_settings.dev_mode()
False
theme_timeout() int[source]#

Get the theme timeout setting.

Get the theme timeout setting from the addon settings.

Returns:
int

The theme timeout setting.

Examples

>>> addon_settings = Settings()
>>> addon_settings.theme_timeout()
3