# -*- 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_())
转载于:https://www.cnblogs.com/Mysterious/p/7594480.html