[wxPython-users] help with ThumbnailCtrl

Brad Allen brad at allendev.com
Wed Mar 21 12:28:26 PDT 2007


At 7:15 AM -0800 3/21/07, Phil Mayes wrote:
>Attached is a thumbnail browser that caches its images in a single 
>file, thus avoiding littering the tree with thumbs.db.  Downside is 
>that it slows if the maximum is too big.  It uses pickle, so no DB 
>installation is needed.
>

Thanks, Phil. That is a helpful example.


At 7:48 AM +0200 3/21/07, Peter Damoc wrote:
>2. This is not an easy issue. I've played with it trying various 
>approaches, no solution so far. I believe that beside some kind of 
>caching you also need multi-threading and when you go there.... 
>things start to go wacko. I had a version that worked and looked 
>ok.... most of the time... and the rest of the time.... it was hell.

The current ThumbnailCtrl does use multiple threads. If we introduced 
caching in a single thumbnails file, I suppose the threads could get 
into contention for that file, at least for writing. But in this case 
there is not much writing going on--just once when the users select a 
directory containing image files. So I am not sure if it would be a 
problem.




More information about the wxpython-users mailing list