ajout control pannel correction bug cassier vide
This commit is contained in:
parent
6ee8861871
commit
9ca81aaf70
10
cave.py
10
cave.py
@ -23,8 +23,11 @@ class Etageres(object):
|
||||
for etagere in self.etageres:
|
||||
etagere.generate_frame(self.fenetre)
|
||||
|
||||
framecontrol=Frame(self.fenetre)
|
||||
framecontrol.grid(column=2)
|
||||
framecontrol=LabelFrame(self.fenetre,text="command pannel")
|
||||
framecontrol.grid(column=2,row=1)
|
||||
Button(framecontrol,text="add etagere").pack()
|
||||
Button(framecontrol,text="remove etagere").pack()
|
||||
Button(framecontrol,text="save").pack()
|
||||
|
||||
def mainloop(self):
|
||||
self.fenetre.mainloop()
|
||||
@ -138,6 +141,7 @@ class Etagere(object):
|
||||
child_window.destroy()
|
||||
newbouteille=Bouteille(cassiervide.pos_largeur, cassiervide.pos_hauteur, couleur, appelation, millesime, self)
|
||||
self.bouteilles.append(newbouteille)
|
||||
cassiervide.boutton.destroy()
|
||||
del cassiervide
|
||||
newbouteille.generate_boutton(self.frame)
|
||||
self.frame["text"]=self
|
||||
@ -172,7 +176,7 @@ class Bouteille(object):
|
||||
|
||||
|
||||
def __repr__(self):
|
||||
return "couleur {} ,appelation {}, millesime {} \n".format( self.couleur,self.appelation, self.millesime)
|
||||
return "{},{} \n".format(self.appelation, self.millesime)
|
||||
|
||||
new = Etageres()
|
||||
new.add_etagere(10, 3)
|
||||
|
Loading…
Reference in New Issue
Block a user