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
372 B
22 lines
372 B
#!/usr/bin/env python
|
|
|
|
# TQt tutorial 3.
|
|
|
|
import sys
|
|
from python_tqt import qt
|
|
|
|
|
|
a = qt.TQApplication(sys.argv)
|
|
|
|
box = qt.TQVBox()
|
|
box.resize(200, 120)
|
|
|
|
quit = qt.TQPushButton("Quit", box)
|
|
quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
|
|
|
|
qt.TQObject.connect(quit, qt.SIGNAL("clicked()"), a, qt.SLOT("quit()"))
|
|
|
|
a.setMainWidget(box)
|
|
box.show()
|
|
sys.exit(a.exec_loop())
|