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

# TQt tutorial 2.

import sys
from python_tqt import qt


a = qt.TQApplication(sys.argv)

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

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

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