update or refresh a Listbox widget
Fredrik Lundh
fredrik at pythonware.com
Sun Apr 2 16:58:28 EDT 2006
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>
More information about the Python-list
mailing list