wxPython has a thumbnail control. It’s impressive and extremely fast. But, it’s not much attractive. Please tell me how can I implement that algorithm in my program. I am also showing another script which is so fast. This is not written by me. I need your help to implement it on my panel. I need to launch a huge project on the basis of this.
Here is a visual comp pic of the attached sample and my thumbnailer, which uses agw.ThumbnailCtrl
http://img69.imageshack.us/img69/2108/duwq.png
It seems that the code sample runs pretty close in comparison with the ThumbnailCtrl.
Noted visual differences.
The MP thumbnailer, shows/flashes a short loading, please wait message when scrolling the list, as where the agw thumbnailer doesn’t.
The agw Thumbnailer seemed to take a bit longer to load 1000+ images, but only by about a second.
The agw Thumbnailer, has zooming/scaling effects, which seem to slow down scrolling through the list a bit more than the MP, which apparently uses fixed thumb size. This probably has to do with resizing checks when scrolling.
Overall, If the scrolled list style look is what you are looking for, personally that seems to be a better bet for your project, maybe. It seems to work fine for me for it’s purpose and the code is quite a bit smaller.
But you might still want to look into the thumb algorithm for agw ThumbnailCtrl if you want extra features or for example get rid of the loading image blip while scrolling or add other metadata like the agw tooltips.
Both thumbnailers loaded 1000+ in 1-2 seconds on a dualcore @ 2.2 - 3.0ghz. Is this not fast enough? How many images are you looking into loading as a maximum?
The agw seems to take more memory also.
Haven’t looked at the agw code recently, but it is probably double buffered somewhere also.
As far a being inside a panel, the MP thumbnailer is already in a panel sizer, so moving it around should be fairly easy.
self.vlist_box = vlist_box = Box(panel, queue_tasks)
sizer.Add(vlist_box, 1, wx.EXPAND, 0)
Also Note that Publisher caused a ImportError on greater than wx2.8, so the Publisher location seems to have been moved inbetween wx versions. You may want to handle that also in the imports sect.
Also, what is the licensing on the posted sample app? Is that what is causing an issue?
···
On Tuesday, December 17, 2013 6:10:18 AM UTC-6, Navaneeth wrote: