from qt import *

a=QApplication([])

d=QDialog()
b=QPushButton("1", d)
d.setStyle(QWindowsStyle())
a.connect(a, SIGNAL("lastWindowClosed()"), a, SLOT("quit()"))
d.show()
a.exec_loop()