Fun with PWM  0.32
Theme.Theme Class Reference

Manage XML theme data. More...

Inheritance diagram for Theme.Theme:

Public Member Functions

def __init__ (self, name='NewTheme', screen=None)
 
def save (self)
 
def load (self)
 
def clone (self, newName)
 
def query (self)
 
def parseProfiles (self, profiles)
 
def parseImages (self, images)
 
def parseColours (self, colours)
 
def parseFonts (self, fonts)
 
def safeName (self)
 

Public Attributes

 name
 
 screen
 
 basepath
 
 filepath
 
 fonts
 
 modules
 
 profiles
 
 profile
 
 images
 
 colours
 

Detailed Description

Manage XML theme data.

Constructor & Destructor Documentation

§ __init__()

def Theme.Theme.__init__ (   self,
  name = 'NewTheme',
  screen = None 
)
Initializes the Theme object

Member Function Documentation

§ clone()

def Theme.Theme.clone (   self,
  newName 
)
clone theme

@param newName str

§ load()

def Theme.Theme.load (   self)
load theme XML

§ parseColours()

def Theme.Theme.parseColours (   self,
  colours 
)
parse colour XML

§ parseFonts()

def Theme.Theme.parseFonts (   self,
  fonts 
)
parse font XML

§ parseImages()

def Theme.Theme.parseImages (   self,
  images 
)
parse image XML

§ parseProfiles()

def Theme.Theme.parseProfiles (   self,
  profiles 
)
loades profile data and selects the best profile for detected display size

@param profiles 

§ query()

def Theme.Theme.query (   self)
gets a list of available themes

§ safeName()

def Theme.Theme.safeName (   self)
remove spaces from theme name

§ save()

def Theme.Theme.save (   self)
save theme XMl

The documentation for this class was generated from the following file: