您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
22 行
506 B
22 行
506 B
#!/usr/bin/env python
|
|
|
|
import sys
|
|
from python_tqt.qt import *
|
|
|
|
from form2 import Form2
|
|
from dbconnect import createConnection
|
|
|
|
class mainWindow(Form2):
|
|
def __init__(self,parent = None,name = None,fl = 0):
|
|
Form2.__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()
|
|
|