2012-12-03, 20:41
i've found a way to calculate the number of lines on a page:
Code:
def getLines( self ):
self.getControl( 110 ).setVisible( False )
listitem = xbmcgui.ListItem()
while xbmc.getInfoLabel('Container(110).NumPages') != '2':
self.getControl(110).addItem(listitem)
xbmc.sleep(5)
lines = self.getControl( 110 ).size() - 1
return lines