1 from desFenetreChoix_ui import Ui_Choix
3 from PyQt4.QtCore import *
4 from PyQt4.QtGui import *
5 from monEditor import TableEditor
9 class MaFenetreChoix(Ui_Choix ,QtGui.QDialog):
12 def __init__(self,db):
13 QtGui.QDialog.__init__(self)
17 self.connecterSignaux()
19 def connecterSignaux(self):
20 self.connect(self.PBMailleur,SIGNAL("clicked()"),self.MailleurPush)
21 self.connect(self.PBMaillage,SIGNAL("clicked()"),self.MaillagePush)
22 self.connect(self.PBVersion,SIGNAL("clicked()"),self.VersionPush)
23 self.connect(self.PBMachine,SIGNAL("clicked()"),self.MachinePush)
24 self.connect(self.PBGroupe,SIGNAL("clicked()"),self.GroupePush)
25 self.connect(self.PBRatio,SIGNAL("clicked()"),self.RatioPush)
26 self.connect(self.PBGroupeRatio,SIGNAL("clicked()"),self.GroupeRatioPush)
27 self.connect(self.PBGroupeTaille,SIGNAL("clicked()"),self.GroupeTaillePush)
28 self.connect(self.PBPerf,SIGNAL("clicked()"),self.PerfPush)
29 self.connect(self.PBMaille,SIGNAL("clicked()"),self.MaillePush)
30 self.connect(self.PBTaille,SIGNAL("clicked()"),self.TaillePush)
31 self.connect(self.PBGroupesRef,SIGNAL("clicked()"),self.GroupesRefPush)
33 def MailleurPush(self):
34 editor=TableEditor(self.db.maTableMailleurs,self)
38 editor=TableEditor(self.db.maTableMailles,self)
42 editor=TableEditor(self.db.maTableTailles,self)
46 editor=TableEditor(self.db.maTableRatios,self)
49 def GroupeRatioPush(self):
50 editor=TableEditor(self.db.maTableGroupeRatios,self)
53 def GroupeTaillePush(self):
54 editor=TableEditor(self.db.maTableGroupeTailles,self)
59 editor=TableEditor(self.db.maTablePerfs,self)
63 editor=TableEditor(self.db.maTableGroupes,self)
66 def GroupesRefPush(self):
67 editor=TableEditor(self.db.maTableGroupesRef,self)
70 def MaillagePush(self):
71 editor=TableEditor(self.db.maTableMaillages,self)
74 def VersionPush(self):
75 editor=TableEditor(self.db.maTableVersions,self)
78 def MachinePush(self):
79 editor=TableEditor(self.db.maTableMachines,self)
83 def on_buttonCancel_clicked(self):
86 def on_buttonOk_clicked(self):