PDA

View Full Version : Class listitem ?


bakman
2005-05-31, 17:17
i have a list and want to use an icon in each listentry

the xbmcgui docs describe:

additem(...)
additem(item) -- add a new item to this control list.

item can be a string / unicode string or a listitem.


class listitem

setthumbnailimage(...)
setthumbnailimage(string iconname) -- sets the listitem's thumbnail image.


how do you apply this ?

i assume that you do this at the time that the list is being filled ?

i have tried several things
e.g

self.list.additem(m.name).setthumbnailimage(thumb)

??

bakman
2005-05-31, 18:21
ok got it.


item = xbmcgui.listitem(m.name, m.zenderid,"", thumb)

self.zenders.additem(item)

:fixed: