You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
382 B
22 lines
382 B
#!/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())
|