in reply to TK ListBox Scrolling
Translation to perl should be straight-forward. Basically, you need to create a Scrollbar widget, configure its command to notify the Listbox, and configure the Listbox to notify the Scrollbar via the Scrollbar's set method. Try this out, and let us know if it works.frame = Frame(master) scrollbar = Scrollbar(frame, orient=VERTICAL) listbox = Listbox(frame, yscrollcommand=scrollbar.set) scrollbar.config(command=listbox.yview) scrollbar.pack(side=RIGHT, fill=Y)listbox.pack(side=LEFT, fill=BOTH, e +xpand=1)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: TK ListBox Scrolling
by SteveS832001 (Sexton) on Mar 06, 2008 at 16:00 UTC |