SIP4 python bindings for TQt
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.
 
 
 
 

20 lines
332 B

#!/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()