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.
22 lines
506 B
22 lines
506 B
13 years ago
|
#!/usr/bin/env python
|
||
|
|
||
|
import sys
|
||
8 years ago
|
from python_tqt.qt import *
|
||
13 years ago
|
|
||
|
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__":
|
||
13 years ago
|
a = TQApplication(sys.argv)
|
||
13 years ago
|
if createConnection():
|
||
13 years ago
|
TQObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
|
||
13 years ago
|
w = mainWindow()
|
||
|
a.setMainWidget(w)
|
||
|
w.show()
|
||
|
a.exec_loop()
|
||
|
|