2006-05-12, 12:41
im currently using the 11nov2005 version of the emulatorn and is having issues with adding a listitem to a controllist. apparently the emulator/python wont find the definition for it. but when i look into xbmcgui.py, i can see that it exists there.
my script looks like this (besides the other crap):
but when i run it with the emulator it throws an exception
could someone please help me as i dont understand why it cant find the listitem in the xbmcgui.py when it founds all other classes in that file.
and is it possible to add images to the list, next to the text?
my script looks like this (besides the other crap):
Quote:class myclass(xbmcgui.window):
def (self):
if emulating: xbmcgui.window.(self)
self.listitems = xbmcgui.controllist(100, 10, 600, 500)
self.addcontrol(self.listitems)
li = listitem("lble1")
self.listitems.additem(li)
but when i run it with the emulator it throws an exception
Quote: li = listitem("lble1")
nameerror: global name 'listitem' is not defined
could someone please help me as i dont understand why it cant find the listitem in the xbmcgui.py when it founds all other classes in that file.
and is it possible to add images to the list, next to the text?