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.

tut3.py 372B

123456789101112131415161718192021
  1. #!/usr/bin/env python
  2. # TQt tutorial 3.
  3. import sys
  4. from python_tqt import qt
  5. a = qt.TQApplication(sys.argv)
  6. box = qt.TQVBox()
  7. box.resize(200, 120)
  8. quit = qt.TQPushButton("Quit", box)
  9. quit.setFont(qt.TQFont("Times", 18, qt.TQFont.Bold))
  10. qt.TQObject.connect(quit, qt.SIGNAL("clicked()"), a, qt.SLOT("quit()"))
  11. a.setMainWidget(box)
  12. box.show()
  13. sys.exit(a.exec_loop())