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.

tut2.py 355B

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