Teamxbox script problem
#1
ok as you know im writing a team xbox script that will allow you to read xbox game reviews among other things...
when i select one of the genres i get this error:


whats going on with the getitem?

Quote:    file "c:\python23\lib\xbmcgui.py", line 104, in action_select
   self.oncontrol(self.activecontrol)
 file "c:\xbmc\game-reviews\gamereviewspc.py", line 75, in oncontrol
   id = self.genrelist[self.genrelist.getselectedposition()].id
attributeerror: controllist instance has no attribute getitem  
Reply
#2
i'm new to python, but am playing around with it. so this may not be the best advice.

for this:
Quote:id = self.genrelist[self.genrelist.getselectedposition()].id

try this:
Quote:id = self.genrelist.getselectedposition()

this should return an index number.

also it may help to post your code.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
i think that is a stupid error. can u try with getitem with i in uppercase.

hy
marcofre
Reply

Logout Mark Read Team Forum Stats Members Help
Teamxbox script problem0