make code more readable

This commit is contained in:
Andreas Preikschat 2012-06-30 20:41:15 +02:00
parent 0f8054c1fd
commit 3fc52181a5

View File

@ -226,8 +226,8 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
"""
Detects Page changes and updates as approprate.
"""
self.setOption(QtGui.QWizard.HaveCustomButton1,
self.page(pageId) == self.areaPositionPage)
enabled = self.page(pageId) == self.areaPositionPage
self.setOption(QtGui.QWizard.HaveCustomButton1, enabled)
if self.page(pageId) == self.previewPage:
self.updateTheme()
frame = self.parent().generateImage(self.theme)