# -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name: icon
Description :
Author : 神秘藏宝室
date: 2017-09-25
-------------------------------------------------
Change Activity:
2017-09-25:
-------------------------------------------------
"""
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
from PyQt4 import QtGui
class Icon(QtGui.QWidget):
def __init__(self,parent = None):
QtGui.QWidget.__init__(self)
self.setGeometry(300,300,350,250) #x,y,宽,高
self.setWindowTitle(u'我的第一个程序')
self.setWindowIcon(QtGui.QIcon('qcom.ICO'))
app = QtGui.QApplication(sys.argv)
icon = Icon()
icon.show()
sys.exit(app.exec_())