from PyQt4.QtGui import *
import sys
uygulama=QApplication(sys.argv)
pencere=QMainWindow()
pencere.show()
uygulama.exec_()