forked from openlp/openlp
Remove Print statement
Fix missing Theme bug
This commit is contained in:
parent
2457da9d88
commit
0facad72d6
@ -55,6 +55,10 @@ class RenderManager:
|
||||
def set_theme(self, theme):
|
||||
log.debug("theme set to %s", 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:
|
||||
pass
|
||||
if theme.font_footer_override == False:
|
||||
@ -98,7 +102,7 @@ class RenderManager:
|
||||
|
||||
#frame = QtGui.QPixmap(self.width, self.height)
|
||||
#self.renderer.set_paint_dest(frame)
|
||||
print main_text
|
||||
#print main_text
|
||||
answer=self.renderer.render_lines(main_text, footer_text)
|
||||
return self.frame
|
||||
|
||||
|
@ -349,7 +349,7 @@ class ThemeManager(QWidget):
|
||||
self.loadThemes()
|
||||
|
||||
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.parse(theme_xml)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user