1 from desFenetreChoix 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.PBPerf,SIGNAL("clicked()"),self.PerfPush)
27 self.connect(self.PBMaille,SIGNAL("clicked()"),self.MaillePush)
28 self.connect(self.PBTaille,SIGNAL("clicked()"),self.TaillePush)
29 self.connect(self.PBGroupesRef,SIGNAL("clicked()"),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)
48 editor=TableEditor(self.db.maTablePerfs,self)
52 editor=TableEditor(self.db.maTableGroupes,self)
55 def GroupesRefPush(self):
56 editor=TableEditor(self.db.maTableGroupesRef,self)
59 def MaillagePush(self):
60 editor=TableEditor(self.db.maTableMaillages,self)
63 def VersionPush(self):
64 editor=TableEditor(self.db.maTableVersions,self)
67 def MachinePush(self):
68 editor=TableEditor(self.db.maTableMachines,self)
72 def on_buttonCancel_clicked(self):
75 def on_buttonOk_clicked(self):