On 10/01/11 14:45, Alberto Soto wrote:
Hi,A friend of mine just gave me this code. Maybe you can use for your wizard? import sys from PySide import QtGui app = QtGui.QApplication(sys.argv) class MyWizard(QtGui.QWizard): def __init__(self, parent): QtGui.QWizard.__init__(self, parent) buttons_layout = [] buttons_layout.append(QtGui.QWizard.HelpButton) buttons_layout.append(QtGui.QWizard.Stretch ) buttons_layout.append(QtGui.QWizard.CancelButton ) buttons_layout.append(QtGui.QWizard.NextButton ) buttons_layout.append(QtGui.QWizard.FinishButton) self.setButtonLayout(buttons_layout) page1 = QtGui.QWizardPage() page2 = QtGui.QWizardPage() wiz = MyWizard(None) wiz.addPage(page1) wiz.addPage(page2) wiz.show() app.exec_()
Worked like magic! thanks. _______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
