2010-11-24, 20:05
Hello,
I have the problem that the first click on my list runs fine, the second onClick event hangs...
What am I missing? On the second call I'll get stuck right after that print id
No error message at all. The gui is still reponsive.
I have the problem that the first click on my list runs fine, the second onClick event hangs...
What am I missing? On the second call I'll get stuck right after that print id
No error message at all. The gui is still reponsive.
Code:
def onClick(self, controlId):
if controlId == 20:
xbmc.log("viewing current channel details")
#if (self.lastChannelPos!=None):
# self.gChannelList.getListItem(lastChannelPos).select(False)
pos = self.gChannelList.getSelectedPosition()
item = self.gChannelList.getListItem(pos)
#item.select(True)
id = item.getLabel2()
print id
print "Searching for: "+ str(id)
for bla in self.channelsList:
if bla.getId() == id:
print "Found"
found = bla
channel = found
print channel.getDisplayName()
x = []
x = channel.getCurrentProgram()
for prog in x:
print prog.getTitle()