mylist = Listbox(root, yscrollcommand=scrollbar.set) for line in range(100): mylist.insert(END, "This is line number " + str(line)) mylist.pack(side=LEFT, fill=BOTH)
scrollbar.config(command=mylist.yview) mainloop()
Related Scripts with Example Source Code in same category :