HI,
Iam creating a python application using Tkinter.
Ia trying to attach a scrollbar to a listbox.
Please tell me how can i set the height of the scrollbar to that of
the listbox. Beacuse in the docs i found the fill=X
and fill=Y options, but this is not i want.
I want to limit the height of scrollbar to match the height of listbox.
Thanx
Iam creating a python application using Tkinter.
Ia trying to attach a scrollbar to a listbox.
Please tell me how can i set the height of the scrollbar to that of
the listbox. Beacuse in the docs i found the fill=X
and fill=Y options, but this is not i want.
I want to limit the height of scrollbar to match the height of listbox.
Code:
listbox=Listbox(parentwnd,width=100,height=40)
listbox.place(x=20,y=20)
scroll1=Scrollbar(orient=VERTICAL,width=200)
scroll2=Scrollbar()
scroll1.place(x=610,y=20)
listbox.config(yscrollcommand=scroll1.set)
scroll1.config(command=listbox.yview)
scroll1.set(20,200)
Comment