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).

Instance Methods
string
getName()
Get the name of this Theme object.
 
setName(s)
Rename this theme.
Blender ThemeSpace or ThemeUI or list of sub-theme types as strings.
get(t=None)
Get a space or the ui (sub)theme from this Theme.
Instance Variables
  name
The name of this Theme object.
Method Details

getName()

 

Get the name of this Theme object.

Returns: string
the name of this Theme object.

setName(s)

 

Rename this theme.

Parameters:
  • s (string) - the new name.

get(t=None)

 

Get a space or the ui (sub)theme from this Theme.

Parameters:
  • t (string, int or None) - 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.
Returns: Blender ThemeSpace or ThemeUI or list of sub-theme types as strings.
It depends on the given parameter:
  • (): a list with all available types, as strings;
  • (type): the chosen sub-theme.