-
- for cb in self.dicoCb.keys():
- #print 'je detruit', self.dicoCb[cb], cb
- cb.close()
- #print self.commandesOptionnellesLayout.children()
- self.dicoCb={}
- liste.reverse()
- for mot in liste :
- cb = monButtonCustom(QString(mot),self)
- #print "j ajoute ", mot, cb
- self.dicoCb[cb]=mot
- self.commandesOptionnellesLayout.insertWidget(0,cb)
-
- def CBChecked(self):
- # ordre ?
- #print "kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk"
- return
- for cb in self.dicoCb.keys() :
- if cb.isChecked() and self.dicoCb[cb] not in self.listeChecked : self.listeChecked.append(self.dicoCb[cb])
- if not(cb.isChecked()) and self.dicoCb[cb] in self.listeChecked : self.listeChecked.remove(self.dicoCb[cb])
- self.parentMC.recalculeListeMC(self.listeChecked)
-
-
- def ajoutMC(self):
- maListe=""
- for cb in self.dicoCb.keys():
- if cb.isChecked() : maListe+="+"+str(cb.text())
- if maListe=="":return
- print "dans Optionnel __ ajout de ", maListe
- self.parentMC.ajoutMC(maListe)
-