debut gestion scrool bar

This commit is contained in:
vincent 2018-02-11 16:14:17 +01:00
parent 4e89d0915d
commit 357df063b7

View File

@ -139,7 +139,10 @@ class EtageresUI(object):
self.fenetre=Tk()
self.fenetre.title(string="cave a vin")
self.etageresUI=[]
self.etagere_frame=Frame(self.fenetre)
scrollbar = Scrollbar(self.fenetre,orient=VERTICAL)
scrollbar.grid(column=2,row=1,sticky=N+S)
self.etagere_frame=Canvas(self.fenetre,yscrollcommand=scrollbar.set)
scrollbar.config(command=self.etagere_frame.yview)
for etagere in self.etageres:
self.etageresUI.append(EtagereUI(etagere,self))
@ -149,8 +152,7 @@ class EtageresUI(object):
Button(framecontrol,text="remove etagere",command=self.click_remove_etagere).pack()
Button(framecontrol,text="save",command=lambda:self.etageres.save_etageres("cave")).pack()
self.etagere_frame.grid(column=1,row=1)
scrollbar = Scrollbar(self.fenetre,orient=VERTICAL)
scrollbar.grid(column=2,row=1,sticky=N+S)
def click_add_etagere(self):
child_window=Toplevel(self.fenetre)