You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pytqt/examples3/tut3.py

22 lines
349 B

#!/usr/bin/env python
# Qt tutorial 3.
import sys
import qt
a = qt.QApplication(sys.argv)
box = qt.QVBox()
box.resize(200, 120)
quit = qt.QPushButton("Quit", box)
quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold))
qt.QObject.connect(quit, qt.SIGNAL("clicked()"), a, qt.SLOT("quit()"))
a.setMainWidget(box)
box.show()
sys.exit(a.exec_loop())