PDA

View Full Version : Teamxbox script problem


nishil
2005-01-27, 19:35
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?

* *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 *

Nuka1195
2005-01-27, 19:46
i'm new to python, but am playing around with it. so this may not be the best advice.

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

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

this should return an index number.

also it may help to post your code.

MarcoFre
2005-02-14, 14:42
i think that is a stupid error. can u try with getitem with i in uppercase.

hy
marcofre