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. Set buttons for bottom of page.
""" """
QtGui.QWizardPage.setVisible(self, visible) QtGui.QWizardPage.setVisible(self, visible)
if visible: if not is_macosx():
try: if visible:
self.myCustomButton()
except:
try: try:
self.wizard().setButtonLayout(self.myButtons) self.myCustomButton()
except: except:
self.wizard().setButtonLayout([QtGui.QWizard.Stretch, try:
QtGui.QWizard.BackButton, self.wizard().setButtonLayout(self.myButtons)
QtGui.QWizard.NextButton, except:
QtGui.QWizard.CancelButton]) self.wizard().setButtonLayout([QtGui.QWizard.Stretch,
QtGui.QWizard.BackButton,
QtGui.QWizard.NextButton,
QtGui.QWizard.CancelButton])
class ConnectWelcomePage(ConnectBase): class ConnectWelcomePage(ConnectBase):