[pygtk] realtime update of TreeView
Neil Muller
drnlmuller+gtk at gmail.com
Sat May 9 16:37:27 WST 2009
On Fri, May 8, 2009 at 5:24 PM, Martin B. <spooky.ln at tbs-software.com> wrote:
> hi, i write some simple app where i need realtime update gtk.TreeView.
> but window shows and long time nothing happened and after whole
> liststore is filled treeview shown :(
A possible solution is to add a:
while gtk.gtk.events_pending():
gtk.main_iteration()
loop after each row insert, to force the UI to update. This will make
adding lots of rows incredibly slow, though, and you will probably
need to look at some scheme of batching updates together if you want
reasonable performance using this approach.
--
Neil Muller
drnlmuller at gmail.com
I've got a gmail account. Why haven't I become cool?
More information about the pygtk
mailing list