Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
22 lignes
506 B
22 lignes
506 B
#!/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()
|
|
|