On Wed, 2009-10-28 at 20:12 +0200, Petsas Athanasios wrote:
> about 2 minutes is required for a treeview of 83 rows! :(
The following took 0.0 seconds. I think you need to post more of your
code. I would not be surprised if the slowdown was coming from
elsewhere.
John
import gtk
tv = gtk.TreeView()
ls = gtk.ListStore(str, int)
tv.append_column(gtk.TreeViewColumn('A', gtk.CellRendererText(),
text=0))
tv.append_column(gtk.TreeViewColumn('B', gtk.CellRendererText(),
text=1))
for i in range(100):
ls.append( ("FOO%d" % i, i) )
tv.set_model(ls)
w = gtk.Window()
w.add(tv)
w.show_all()
gtk.main()
>
> On Wed, Oct 28, 2009 at 7:42 PM, John Stowers
> <[email protected]> wrote:
>
> >
> > from taken from this page:
> > http://faq.pygtk.org/index.py?req=show&file=faq13.043.htp
> > but it's still slow!
>
>
> How slow? How are you measuring the speed?
>
> John
>
>
>
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/