View Full Version : Display images in controllist ctrl as thumbnails
xboxnerd
2005-06-10, 09:43
hello,
how can i get image files from local folder and load them as items in controllist and display them as thumbnails? similar to
thanx
/// rowfilter
no way that i know of to switch view modes. that feature would be pretty sweet though.
something like:
item = xbmcgui.listitem("titel" ,"more", "bla.png")
self.list.additem(item)
thumbnail will show up on the left side of the list.
xboxnerd
2005-06-12, 04:07
i do already have:
items = ["item 1", "item 2", "item 3"]
for item in items:
* *self.list.additem(item)
but how do i get items that are actually files in the local directory? like my pictures in xbmc.
and the same with the thumbnails, i am not talking about the small thumbnail left to the item, except the view of the item itself, just like changing the "view" in the my pictures.
thanks.
i heard from jmarshall that the thumbpanel is not yet exposed to python.
depending on how masochistic you are you can attempt to duplicate the behavior with a grid of images in front of buttons with custom textures.
i do something similar in the xstocks script.
made a few tests and it seems the icons or thumbnails are displayed "inline"..
so you'd get on each line something like
icon/thumb - label1 - label2
haven't tested too much the difference between thumb and icon but i guess the thumb will be used for the thumb view to come..