Module Theme :: Class Theme
[frames | no frames]

Class Theme


The Theme object

This object gives access to Themes in Blender. Each Theme object is composed of one UI (Use Interface) theme and many Space themes (3d view, Text Editor, Buttons window, etc).
Method Summary
Blender ThemeSpace or ThemeUI or list of sub-theme types as strings. get(t)
Get a space or the ui (sub)theme from this Theme.
string getName()
Get the name of this Theme object.
  setName(s)
Rename this theme.

Instance Variable Summary
  name: The name of this Theme object.

Method Details

get(t=None)

Get a space or the ui (sub)theme from this Theme.
Parameters:
t - the wanted sub-theme as either:
  • int: -1 for UI or the types in Window.Types for the others;
  • string: use get() to know them (they are case insensitive);
  • nothing: as written above, get() returns a list of names.

           (type=string, int or None)
Returns:
It depends on the given parameter:
  • (): a list with all available types, as strings;
  • (type): the chosen sub-theme.

           (type=Blender ThemeSpace or ThemeUI or list of sub-theme types as strings.)

getName()

Get the name of this Theme object.
Returns:
the name of this Theme object.
           (type=string)

setName(s)

Rename this theme.
Parameters:
s - the new name.
           (type=string)

Instance Variable Details

name

The name of this Theme object.

Generated by Epydoc 2.1 on Thu May 10 20:31:59 2007 http://epydoc.sf.net