470,849 Members | 1,161 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

update or refresh a Listbox widget

Hello!

Is there a function to update/refresh a listbox widget.
My one is connected to a database and after a change of the database I would
like the listbox to be updated.

Thank you for your help!
Arne
Apr 2 '06 #1
2 8564
Arne Meissner wrote:
Is there a function to update/refresh a listbox widget.
My one is connected to a database and after a change of the database I would
like the listbox to be updated.


Tkinter?

the quickest way is to do:

w.delete(0, END)
w.insert(0, *data)

where w is the widget and data is a list (or other sequence) containing
the new data.

</F>

Apr 2 '06 #2
it might be very slow when the data is big...

Apr 3 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Bernie Hunt | last post: by
3 posts views Thread by Bernard Lebel | last post: by
5 posts views Thread by rsteph | last post: by
7 posts views Thread by Randy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.