little clean up, doc string

This commit is contained in:
Andreas Preikschat 2012-05-24 21:05:15 +02:00
parent 71e8a7a2eb
commit fc577afda2
1 changed files with 5 additions and 6 deletions

View File

@ -87,11 +87,11 @@ class Renderer(object):
Updates the renderer's information about the current screen. Updates the renderer's information about the current screen.
""" """
log.debug(u'Update Display') log.debug(u'Update Display')
self._calculate_default()
if self.display: if self.display:
self.display.close() self.display.close()
self.display = MainDisplay(None, self.imageManager, False, self) self.display = MainDisplay(None, self.imageManager, False, self)
self.display.setup() self.display.setup()
self._calculate_default()
self._theme_dimensions = {} self._theme_dimensions = {}
def update_theme(self, theme_name, old_theme_name=None, only_delete=False): def update_theme(self, theme_name, old_theme_name=None, only_delete=False):
@ -208,12 +208,11 @@ class Renderer(object):
def set_item_theme(self, item_theme_name): def set_item_theme(self, item_theme_name):
""" """
Set the appropriate theme depending on the theme level. Set the item-level theme. **Note**, this has to be done for each item we
Called by the service item when building a display frame are rendering.
``override_theme`` ``item_theme_name``
The name of the song-level theme. None means the service The item theme's name.
item wants to use the given value.
""" """
self._set_theme(item_theme_name) self._set_theme(item_theme_name)
self.item_theme_name = item_theme_name self.item_theme_name = item_theme_name