Merging lrc and cu lyrics scripts
#16
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
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#17
(2012-12-03, 20:41)ronie Wrote: 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

Good! thanks!
Reply

Logout Mark Read Team Forum Stats Members Help
Merging lrc and cu lyrics scripts0