PyQt4 wizard

#!/usr/bin/python

import sys
from PyQt4 import QtGui,QtCore

def create_page():   
 page = QtGui.QWizardPage()   
 page.setTitle('Introduction')   
 page.setSubTitle('hello')       
 label = QtGui.QLabel('Welcome to be here')   
 label.setWordWrap(True)       
 layout = QtGui.QVBoxLayout()   
 layout.addWidget(label)   
 page.setLayout(layout)   
   
 return page
 
 
if __name__=='__main__':   
 app = QtGui.QApplication(sys.argv)   
 wizard = QtGui.QWizard()   
 wizard.addPage(create_page())   
 wizard.addPage(create_page())   
 wizard.setWindowTitle('wizard')   
 wizard.show()   
 sys.exit(wizard.exec_())

你可能感兴趣的:(qt)