forked from openlp/openlp
Cleanups
This commit is contained in:
parent
f5ec98f79c
commit
ead2daeed4
@ -527,15 +527,15 @@ class ThemeXML(object):
|
|||||||
value = u''
|
value = u''
|
||||||
setattr(self, tag, unicode(value).strip().lstrip())
|
setattr(self, tag, unicode(value).strip().lstrip())
|
||||||
|
|
||||||
# def __str__(self):
|
def __str__(self):
|
||||||
# """
|
"""
|
||||||
# Return a string representation of this object.
|
Return a string representation of this object.
|
||||||
# """
|
"""
|
||||||
# theme_strings = []
|
theme_strings = []
|
||||||
# for key in dir(self):
|
for key in dir(self):
|
||||||
# if key[0:1] != u'_':
|
if key[0:1] != u'_':
|
||||||
# theme_strings.append(u'%30s: %s' % (key, getattr(self, key)))
|
theme_strings.append(u'%30s: %s' % (key, getattr(self, key)))
|
||||||
# return u'\n'.join(theme_strings)
|
return u'\n'.join(theme_strings)
|
||||||
|
|
||||||
def _de_hump(self, name):
|
def _de_hump(self, name):
|
||||||
"""
|
"""
|
||||||
|
@ -125,10 +125,8 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
|
|||||||
"""
|
"""
|
||||||
Set up display at start of theme edit.
|
Set up display at start of theme edit.
|
||||||
"""
|
"""
|
||||||
print "setdefaults 1", self.theme, self.theme.theme_name
|
|
||||||
self.restart()
|
self.restart()
|
||||||
self.accepted = False
|
self.accepted = False
|
||||||
print "setdefaults 2", self.theme, self.theme.theme_name
|
|
||||||
self.setBackgroundPageValues()
|
self.setBackgroundPageValues()
|
||||||
self.setMainAreaPageValues()
|
self.setMainAreaPageValues()
|
||||||
self.setFooterAreaPageValues()
|
self.setFooterAreaPageValues()
|
||||||
@ -288,7 +286,6 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
|
|||||||
Run the wizard.
|
Run the wizard.
|
||||||
"""
|
"""
|
||||||
log.debug(u'Editing theme %s' % self.theme.theme_name)
|
log.debug(u'Editing theme %s' % self.theme.theme_name)
|
||||||
print "exec_", self.theme, self.theme.theme_name
|
|
||||||
self.updateThemeAllowed = False
|
self.updateThemeAllowed = False
|
||||||
self.setDefaults()
|
self.setDefaults()
|
||||||
self.updateThemeAllowed = True
|
self.updateThemeAllowed = True
|
||||||
@ -324,7 +321,6 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
|
|||||||
"""
|
"""
|
||||||
Handle the display and state of the Background page.
|
Handle the display and state of the Background page.
|
||||||
"""
|
"""
|
||||||
print "setBPV", self.theme, self.theme.theme_name
|
|
||||||
if self.theme.background_type == \
|
if self.theme.background_type == \
|
||||||
BackgroundType.to_string(BackgroundType.Solid):
|
BackgroundType.to_string(BackgroundType.Solid):
|
||||||
self.colorButton.setStyleSheet(u'background-color: %s' %
|
self.colorButton.setStyleSheet(u'background-color: %s' %
|
||||||
|
Loading…
Reference in New Issue
Block a user