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.

runform1.py 506B

123456789101112131415161718192021
  1. #!/usr/bin/env python
  2. import sys
  3. from python_tqt.qt import *
  4. from form1 import Form1
  5. from dbconnect import createConnection
  6. class mainWindow(Form1):
  7. def __init__(self,parent = None,name = None,fl = 0):
  8. Form1.__init__(self,parent,name,fl)
  9. if __name__ == "__main__":
  10. a = TQApplication(sys.argv)
  11. if createConnection():
  12. TQObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
  13. w = mainWindow()
  14. a.setMainWidget(w)
  15. w.show()
  16. a.exec_loop()