PyQt4测试安装ok的程序

# -*- coding: utf-8 -*-
"""
-------------------------------------------------
   File Name:     simple
   Description :
   Author :       神秘藏宝室
   date:          2017-09-25
-------------------------------------------------
   Change Activity:
                   2017-09-25:
-------------------------------------------------
"""
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from PyQt4 import QtGui

app = QtGui.QApplication(sys.argv)
widget = QtGui.QWidget()
widget.resize(350,250)
widget.setWindowTitle(u"第一个窗口程序")
widget.show()
sys.exit(app.exec_())
posted on 2017-09-25 23:14  神秘藏宝室  阅读(302)  评论(0编辑  收藏  举报

 >>>转载请注明出处<<<