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

# Qt tutorial 2.

import sys
import qt


a = qt.QApplication(sys.argv)

quit = qt.QPushButton("Quit", None)
quit.resize(75, 30)
quit.setFont(qt.QFont("Times", 18, qt.QFont.Bold))

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

a.setMainWidget(quit)
quit.show()
sys.exit(a.exec_loop())