4 from PyQt4.QtCore import *
5 from PyQt4.QtGui import *
6 from Gui.myMain_ui import Ui_Gestion
10 class MonAppli(Ui_Gestion,QWidget):
12 QWidget.__init__(self)
13 Ui_Gestion.__init__(self)
20 def connectSignaux(self) :
21 self.connect(self.BExp,SIGNAL("clicked()"),self.BExpPressed)
22 self.connect(self.BImp,SIGNAL("clicked()"),self.BImpPressed)
23 self.connect(self.BCree,SIGNAL("clicked()"),self.BCreePressed)
24 self.connect(self.BVue,SIGNAL("clicked()"),self.BVuePressed)
25 self.connect(self.BStat,SIGNAL("clicked()"),self.BStatPressed)
28 def BExpPressed(self):
31 def BImpPressed(self):
34 def BCreePressed(self):
35 from Gui.monNomBase import DataBaseName
36 maW=DataBaseName(self)
38 from createDatabase import creeDatabase
39 creeDatabase(self.nomBase)
41 def BVuePressed(self):
42 if self.nomBase == "" :
43 from Gui.monNomBase import DataBaseName
44 maW=DataBaseName(self)
46 from Gui.maFenetreChoix import MaFenetreChoix
47 from Base.dataBase import Base
48 maBase=Base(self.nomBase)
50 window = MaFenetreChoix(maBase)
56 def BStatPressed(self):
60 if __name__ == "__main__":
61 app = QApplication(sys.argv)