`
scm002
  • 浏览: 309948 次
社区版块
存档分类
最新评论

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_())

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics