forked from openlp/openlp
Test for MacOSX for wizard buttons
This commit is contained in:
parent
66a674c8de
commit
c0169bb762
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue