#------------------------------------------------------------------------------- # Name: ParamGuiEdit2 # Purpose: # # Author: Kelvin # # Created: 27/11/2013 # Copyright: (c) Kelvin 2013 # Licence: #------------------------------------------------------------------------------- import sys from PyQt4 import QtGui class Example(QtGui.QWidget): def __init__(self): super(Example, self).__init__() self.initUI() def initUI(self): self.setGeometry(300, 300, 250, 150) self.setWindowTitle('Icon') self.setWindowIcon(QtGui.QIcon('web.png')) self.show() def main(): app = QtGui.QApplication(sys.argv) ex = Example() sys.exit(app.exec_()) if __name__ == '__main__': main()