Customized Listbox on canvas – Now with graphics !

by Marcelo Barros

After the listbox on canvas with only texts, the next expected step is to add images support. Basic features remains the same, like variable number of lines per row, but now you can set a list of images to be loaded as well. Depending on its size, this loading may take a long time and sometimes we can not have memory enough to show some images since it is necessary to load and resize them. This is a known drawback and deserves some improvements. Small images, like screenshots, take less than one seconds to be loaded and resized to the desired size but large images, for instance 700kb, may take four seconds (each one) to be presented. You may avoid the resize phase just using pictures with size equal to that one used in the listbox.

I created an explorer like application, as a demo, and you can see it in action in the following video. Source code and installable sis are available as well (Python 1.4.5).

Related posts:

  1. Customized Listbox on canvas Special needs require special programs. I was needing a special...
  2. Creating a listbox on canvas for XM 5800 Since Python 1.9.4 does not have scrollbars in listbox yet,...
  3. Trend graphics on canvas Some months ago, before the cute Energy Profiler application, I...
  4. Sweet Memories v1.00 (touch game) Sweet Memories is a memory card game for touch screen...
  5. Twin Featured PyS60 Applications #5 Every 10 days, we would be featuring in the...

Related posts brought to you by Yet Another Related Posts Plugin.