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.

tut1.py 242B

12345678910111213141516
  1. #!/usr/bin/env python
  2. # TQt tutorial 1.
  3. import sys
  4. from python_tqt import qt
  5. a = qt.TQApplication(sys.argv)
  6. hello = qt.TQPushButton("Hello world!", None)
  7. hello.resize(100, 30)
  8. a.setMainWidget(hello)
  9. hello.show()
  10. sys.exit(a.exec_loop())