2 from .desFenetreChoix import Ui_Choix
3 from .monEditor import TableEditor
7 class MaFenetreChoix(Ui_Choix ,QDialog):
10 def __init__(self,db):
11 QDialog.__init__(self)
15 self.connecterSignaux()
17 def connecterSignaux(self):
18 self.PBMailleur.clicked.connect(self.MailleurPush)
19 self.PBMaillage.clicked.connect(self.MaillagePush)
20 self.PBVersion.clicked.connect(self.VersionPush)
21 self.PBMachine.clicked.connect(self.MachinePush)
22 self.PBGroupe.clicked.connect(self.GroupePush)
23 self.PBRatio.clicked.connect(self.RatioPush)
24 self.PBGroupeRatio.clicked.connect(self.GroupeRatioPush)
25 self.PBGroupeTaille.clicked.connect(self.GroupeTaillePush)
26 self.PBPerf.clicked.connect(self.PerfPush)
27 self.PBMaille.clicked.connect(self.MaillePush)
28 self.PBTaille.clicked.connect(self.TaillePush)
29 self.PBGroupesRef.clicked.connect(self.GroupesRefPush)
31 def MailleurPush(self):
32 editor=TableEditor(self.db.maTableMailleurs,self)
36 editor=TableEditor(self.db.maTableMailles,self)
40 editor=TableEditor(self.db.maTableTailles,self)
44 editor=TableEditor(self.db.maTableRatios,self)
47 def GroupeRatioPush(self):
48 editor=TableEditor(self.db.maTableGroupeRatios,self)
51 def GroupeTaillePush(self):
52 editor=TableEditor(self.db.maTableGroupeTailles,self)
57 editor=TableEditor(self.db.maTablePerfs,self)
61 editor=TableEditor(self.db.maTableGroupes,self)
64 def GroupesRefPush(self):
65 editor=TableEditor(self.db.maTableGroupesRef,self)
68 def MaillagePush(self):
69 editor=TableEditor(self.db.maTableMaillages,self)
72 def VersionPush(self):
73 editor=TableEditor(self.db.maTableVersions,self)
76 def MachinePush(self):
77 editor=TableEditor(self.db.maTableMachines,self)
81 def on_buttonCancel_clicked(self):
84 def on_buttonOk_clicked(self):