Fix up theme string issues to False is matched

Remove any Print statements
This commit is contained in:
Tim Bentley 2009-12-09 17:09:45 +00:00
parent 9893a887ab
commit 3cc63840f4
2 changed files with 4 additions and 10 deletions

View File

@ -386,6 +386,7 @@ class ThemeXML(object):
else:
if element.tag:
field = master + element.tag
element.text = element.text.strip().lstrip()
if element.text == u'True' or element.text == u'False':
setattr(self, field, str_to_bool(element.text))
else:

View File

@ -450,9 +450,8 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
self.previewTheme()
def onSlideTransitionCheckedBoxChanged(self, value):
print "changed"
if value == 2: # checked
self.theme.display_slideTransition= True
self.theme.display_slideTransition = True
else:
self.theme.display_slideTransition = False
self.stateChanging(self.theme)
@ -574,11 +573,10 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
self.ShadowCheckBox.setChecked(False)
self.ShadowColorPushButton.setEnabled(False)
print self.theme.display_slideTransition
if self.theme.display_slideTransition:
self.SlideTransitionCheckedBox.setChecked(True)
self.SlideTransitionCheckedBox.setCheckState(QtCore.Qt.Checked)
else:
self.SlideTransitionCheckedBox.setChecked(False)
self.SlideTransitionCheckedBox.setCheckState(QtCore.Qt.Unchecked)
self.HorizontalComboBox.setCurrentIndex(
self.theme.display_horizontalAlign)
@ -672,11 +670,6 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
else:
self.ShadowColorPushButton.setEnabled(False)
if self.theme.display_slideTransition:
self.SlideTransitionCheckedBox.setChecked(True)
else:
self.SlideTransitionCheckedBox.setChecked(False)
def previewTheme(self):
if self.allowPreview:
#calculate main number of rows