标签:
import sys
from PyQt4 import QtGui
class Icon(QtGui.QWidget):
def __init__(self,parent=None):
QtGui.QWidget.__init__(self,parent)
self.setGeometry(300,300,250,150)
self.setWindowTitle(‘Icon‘)
self.setWindowIcon(QtGui.QIcon(‘f:1.jpg‘))
app=QtGui.QApplication(sys.argv)
icon=Icon()
icon.show()
sys.exit(app.exec_())
标签:
原文地址:http://www.cnblogs.com/mhxy13867806343/p/4156338.html