summaryrefslogtreecommitdiffstats
path: root/python/pyqt/examples2/tut3.py
blob: 2cc3576cccf41ca17d633567dcef69c89ff2ebb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env python

# Qt tutorial 3.

import sys
from qt import *

a = QApplication(sys.argv)

box = QVBox()
box.resize(200,120)

quit = QPushButton("Quit",box)
quit.setFont(QFont("Times",18,QFont.Bold))

QObject.connect(quit,SIGNAL("clicked()"),a,SLOT("quit()"))

a.setMainWidget(box)
box.show()
a.exec_loop()