Re: Replace single item in tkinter ListBox

2004-12-19 Thread Zhang Le
Thanks for the hint. But I did not try such *advance* techniques so far. Both Delete-then-insert and Insert-then-delete work for me. Interestingly, I found Delete-then-insert can cause some flicking when replacing items near bottom, while Insert-then-delete always works fine. Zhang Le -- http://

Re: Replace single item in tkinter ListBox

2004-12-18 Thread jepler
To the best of my knowledge, the only way to do this is as you describe: delete the old item, then insert the new item. The Tk manpage for "listbox" doesn't describe any commands to only update an item in the list. Actually, you may have another choice, if your Tk is new enough---Tk supports (in

Replace single item in tkinter ListBox

2004-12-18 Thread Zhang Le
Hello, Is there a quick way to replace the content of a single item in tkinter's listbox? Currently my solution is to first delete the item, then insert a new item at the same position. I think there may be better way. Zhang Le -- http://mail.python.org/mailman/listinfo/python-list