Test for MacOSX for wizard buttons

This commit is contained in:
Ken Roberts 2014-10-09 15:12:08 -07:00
parent 66a674c8de
commit c0169bb762
1 changed files with 10 additions and 9 deletions

View File

@ -221,17 +221,18 @@ class ConnectBase(QtGui.QWizardPage):
Set buttons for bottom of page.
"""
QtGui.QWizardPage.setVisible(self, visible)
if visible:
try:
self.myCustomButton()
except:
if not is_macosx():
if visible:
try:
self.wizard().setButtonLayout(self.myButtons)
self.myCustomButton()
except:
self.wizard().setButtonLayout([QtGui.QWizard.Stretch,
QtGui.QWizard.BackButton,
QtGui.QWizard.NextButton,
QtGui.QWizard.CancelButton])
try:
self.wizard().setButtonLayout(self.myButtons)
except:
self.wizard().setButtonLayout([QtGui.QWizard.Stretch,
QtGui.QWizard.BackButton,
QtGui.QWizard.NextButton,
QtGui.QWizard.CancelButton])
class ConnectWelcomePage(ConnectBase):