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
358 B
20 lines
358 B
#!/usr/bin/env python
|
|
|
|
# TQt tutorial 2.
|
|
|
|
import sys
|
|
from PyTQt import tqt
|
|
|
|
|
|
a = tqt.TQApplication(sys.argv)
|
|
|
|
quit = tqt.TQPushButton("Quit", None)
|
|
quit.resize(75, 30)
|
|
quit.setFont(tqt.TQFont("Times", 18, tqt.TQFont.Bold))
|
|
|
|
tqt.TQObject.connect(quit, tqt.SIGNAL("clicked()"), a, tqt.SLOT("quit()"))
|
|
|
|
a.setMainWidget(quit)
|
|
quit.show()
|
|
sys.exit(a.exec_loop())
|