blob: b1fe6eeaf50d41b32a739d1b9c2ded8ba612f313 (
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
# TQt tutorial 3.
import sys
from python_tqt.qt import *
a = TQApplication(sys.argv)
box = TQVBox()
box.resize(200,120)
quit = TQPushButton("Quit",box)
quit.setFont(TQFont("Times",18,TQFont.Bold))
TQObject.connect(quit,SIGNAL("clicked()"),a,SLOT("quit()"))
a.setMainWidget(box)
box.show()
a.exec_loop()
|