PyQt4测试安装ok的程序

时间:2022-09-08 23:04:37
# -*- 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_())