import sys from PyQt4 import QtGui , QtCore class LIN(QtGui.QMainWindow): def _init_(self): QtGui.QMainWindoW._init_(self) self.setWindowTitle('lin') self.resize(300,300) app=QtGui.QApplication(sys.argv) mywindow=LIN() mywindow.show() app.exec_()