summaryrefslogtreecommitdiffstats
path: root/examples2/tut2.py
blob: 48ddb898e94941cfd6efa562ac544050a5a49d31 (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 qt import *


a = TQApplication(sys.argv)

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

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

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