Package theme
[hide private]
[frames] | no frames]

Package theme

Theming

Package for theming. Themes are subdirectories in this package and are detected automatically.

Import the theme object from this package for accessing the elements of the current theme by name:

 from theme import theme
 
 ...
 
 icon = theme.foo_icon
Submodules [hide private]

Classes [hide private]
  _Theme
Singleton class for loading themes.
Functions [hide private]
 
_get_info(themepath)
Variables [hide private]
  _THEMES_DIR = os.path.dirname(__file__)
  _USER_THEMES_DIR = os.path.join(values.USER_DIR, "themes")
  _DEFAULT_THEME_DIR = os.path.join(_THEMES_DIR, "default")
  _TYPE_PBUF = 0
  _TYPE_COLOR = 1
  _TYPE_FONT = 2
  theme = _Theme()
the theme singleton object