blob: 58ec009375cf2990d2d83162074ed8b5b34fcabf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/usr/bin/env python
# TQt tutorial 3.
import sys
from PyTQt import tqt
a = tqt.TQApplication(sys.argv)
box = tqt.TQVBox()
box.resize(200, 120)
quit = tqt.TQPushButton("Quit", box)
quit.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold))
tqt.TQObject.connect(quit, tqt.TQ_SIGNAL("clicked()"), a, tqt.TQ_SLOT("quit()"))
a.setMainWidget(box)
box.show()
sys.exit(a.exec_loop())
|