Remove Print statement

Fix missing Theme bug
This commit is contained in:
Tim Bentley 2009-04-25 07:38:21 +01:00
parent 2457da9d88
commit 0facad72d6
2 changed files with 6 additions and 2 deletions

View File

@ -55,6 +55,10 @@ class RenderManager:
def set_theme(self, theme): def set_theme(self, theme):
log.debug("theme set to %s", theme) log.debug("theme set to %s", theme)
self.theme = theme self.theme = theme
self.renderer.set_theme(self.theme)
self.renderer.set_text_rectangle(QtCore.QRect(10,0, self.width-1, self.height-1),
QtCore.QRect(10,self.footer_start, self.width-1, self.height-self.footer_start))
if theme.font_main_override == False: if theme.font_main_override == False:
pass pass
if theme.font_footer_override == False: if theme.font_footer_override == False:
@ -98,7 +102,7 @@ class RenderManager:
#frame = QtGui.QPixmap(self.width, self.height) #frame = QtGui.QPixmap(self.width, self.height)
#self.renderer.set_paint_dest(frame) #self.renderer.set_paint_dest(frame)
print main_text #print main_text
answer=self.renderer.render_lines(main_text, footer_text) answer=self.renderer.render_lines(main_text, footer_text)
return self.frame return self.frame

View File

@ -349,7 +349,7 @@ class ThemeManager(QWidget):
self.loadThemes() self.loadThemes()
def generateAndSaveImage(self, dir, name, theme_xml): def generateAndSaveImage(self, dir, name, theme_xml):
log.debug(u'generateImage %s %s %s', dir, name, theme_xml) log.debug(u'generateAndSaveImage %s %s %s', dir, name, theme_xml)
theme = ThemeXML() theme = ThemeXML()
theme.parse(theme_xml) theme.parse(theme_xml)