class theme.ThemeProperty

The ThemeProperty class is a property descriptor used for defining theme properties.

Constructor

ThemeProperty(name)
Constructs a theme property. The name given is used to derive the name under which the property value is cached, by prepending an underscore. Normally name should be the same as the name being used for the property.

Example

class Battlefield(Widget):

phaser_color = ThemeProperty('phaser_color')