summaryrefslogtreecommitdiffstats
path: root/examples/SQL/runform1.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/SQL/runform1.py')
-rwxr-xr-xexamples/SQL/runform1.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/SQL/runform1.py b/examples/SQL/runform1.py
new file mode 100755
index 0000000..2e01b7e
--- /dev/null
+++ b/examples/SQL/runform1.py
@@ -0,0 +1,21 @@
+#!/usr/bin/env python
+
+import sys
+from python_tqt.qt import *
+
+from form1 import Form1
+from dbconnect import createConnection
+
+class mainWindow(Form1):
+ def __init__(self,parent = None,name = None,fl = 0):
+ Form1.__init__(self,parent,name,fl)
+
+if __name__ == "__main__":
+ a = TQApplication(sys.argv)
+ if createConnection():
+ TQObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
+ w = mainWindow()
+ a.setMainWidget(w)
+ w.show()
+ a.exec_loop()
+