from PyQt4.QtGui import *
import sys
uygulama=QApplication(sys.argv)
pencere=QWidget()
pencere.setWindowTitle("python4hackers.com")
pencere.show()
uygulama.exec_()from PyQt4.QtGui import *
import sys
uygulama=QApplication(sys.argv)
pencere=QMainWindow()
pencere.show()
uygulama.exec_()from PyQt4.QtGui import *
import sys
uygulama=QApplication(sys.argv)
pencere=QDialog()
pencere.show()
uygulama.exec_()from PyQt4.QtGui import *
import sys
uygulama=QApplication(sys.argv)
pencere=QWidget()
pencere.show()
uygulama.exec_()from PyQt4 import QtGui
import sys
uygulama=QtGui.QApplication(sys.argv)
pencere=QtGui.QMainWindow()
pencere.show()
uygulama.exec_()