forked from openlp/openlp
Fix up theme string issues to False is matched
Remove any Print statements
This commit is contained in:
parent
9893a887ab
commit
3cc63840f4
@ -386,6 +386,7 @@ class ThemeXML(object):
|
|||||||
else:
|
else:
|
||||||
if element.tag:
|
if element.tag:
|
||||||
field = master + element.tag
|
field = master + element.tag
|
||||||
|
element.text = element.text.strip().lstrip()
|
||||||
if element.text == u'True' or element.text == u'False':
|
if element.text == u'True' or element.text == u'False':
|
||||||
setattr(self, field, str_to_bool(element.text))
|
setattr(self, field, str_to_bool(element.text))
|
||||||
else:
|
else:
|
||||||
|
@ -450,9 +450,8 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
self.previewTheme()
|
self.previewTheme()
|
||||||
|
|
||||||
def onSlideTransitionCheckedBoxChanged(self, value):
|
def onSlideTransitionCheckedBoxChanged(self, value):
|
||||||
print "changed"
|
|
||||||
if value == 2: # checked
|
if value == 2: # checked
|
||||||
self.theme.display_slideTransition= True
|
self.theme.display_slideTransition = True
|
||||||
else:
|
else:
|
||||||
self.theme.display_slideTransition = False
|
self.theme.display_slideTransition = False
|
||||||
self.stateChanging(self.theme)
|
self.stateChanging(self.theme)
|
||||||
@ -574,11 +573,10 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
self.ShadowCheckBox.setChecked(False)
|
self.ShadowCheckBox.setChecked(False)
|
||||||
self.ShadowColorPushButton.setEnabled(False)
|
self.ShadowColorPushButton.setEnabled(False)
|
||||||
|
|
||||||
print self.theme.display_slideTransition
|
|
||||||
if self.theme.display_slideTransition:
|
if self.theme.display_slideTransition:
|
||||||
self.SlideTransitionCheckedBox.setChecked(True)
|
self.SlideTransitionCheckedBox.setCheckState(QtCore.Qt.Checked)
|
||||||
else:
|
else:
|
||||||
self.SlideTransitionCheckedBox.setChecked(False)
|
self.SlideTransitionCheckedBox.setCheckState(QtCore.Qt.Unchecked)
|
||||||
|
|
||||||
self.HorizontalComboBox.setCurrentIndex(
|
self.HorizontalComboBox.setCurrentIndex(
|
||||||
self.theme.display_horizontalAlign)
|
self.theme.display_horizontalAlign)
|
||||||
@ -672,11 +670,6 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
else:
|
else:
|
||||||
self.ShadowColorPushButton.setEnabled(False)
|
self.ShadowColorPushButton.setEnabled(False)
|
||||||
|
|
||||||
if self.theme.display_slideTransition:
|
|
||||||
self.SlideTransitionCheckedBox.setChecked(True)
|
|
||||||
else:
|
|
||||||
self.SlideTransitionCheckedBox.setChecked(False)
|
|
||||||
|
|
||||||
def previewTheme(self):
|
def previewTheme(self):
|
||||||
if self.allowPreview:
|
if self.allowPreview:
|
||||||
#calculate main number of rows
|
#calculate main number of rows
|
||||||
|
Loading…
Reference in New Issue
Block a user