Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > pygtk, gtk.treeview and virtuallist ?

Reply
Thread Tools

pygtk, gtk.treeview and virtuallist ?

 
 
manatlan
Guest
Posts: n/a
 
      04-25-2005
Hello, I'm new to pygtk (but i know wxpython very well)

I'm trying to play with this example :
http://www.pygtk.org/pygtk2tutorial/...filelistingfig
(the code is here
: http://www.pygtk.org/pygtk2tutorial/...filelisting.py)

I'd like to be able to use a virtual list (like wx.ListCtrl in mode
LC_VIRTUAL) ...

This example use a gtk.treeview with a listStore ...
There are callbacks to display "image, texts and info" (via
set_cell_data_func() )
But if there are 1000000 of items, the callbacks will be called 1000000
times before the window appears ;-(

I'd like that theses callbacks are called only when items are displayed in
the window (on demand) ...

is it possible to do that in pygtk ?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
if and and vs if and,and titi VHDL 4 03-11-2007 05:23 AM



Advertisments