attaching Tkinter Listbox to python list object

Steve Potter steven.potter at gmail.com
Mon Mar 12 20:34:11 EDT 2007


I am trying to find some method of attaching a Listbox object to a
list object so as the contents of the list are changed the contents of
the Listbox will be updated to match.  I have found a few references
to something like this in this old post
http://groups.google.com/group/comp.lang.python/browse_thread/thread/3a6fe7534c812f55/43f201ab53cfdbf7
as well as here http://effbot.org/zone/wck-4.htm .

It just seems that there should be some way of achieving this.

The only this I can think of is create a subclass of list that deletes
and then refills the Listbox every time that the list changes, but
this seems very in efficient.


Any ideas?

Steve




More information about the Python-list mailing list