Quantcast
Channel: Kodi Community Forum - All Forums
Viewing all articles
Browse latest Browse all 84004

windowXML slide show

$
0
0
Hi, I'm try to do a slide show of radar images that will loop seamlessly.

This works but is not seamless(annoying flicker between images) -
Code:
def __init__( self, *args, **kwargs ):
        xbmcgui.WindowXMLDialog.__init__( self )
        self.images = kwargs.get( "images" )
        
    def onInit(self):
        self.img = self.getControl(102)
        while xbmc.getCondVisibility('Window.IsActive(3000)') == 1:
            for i in self.images:
                self.img.setImage(i)
                xbmc.sleep(1000)

This is seamless but the images(on screen) don't loop -
Code:
def onInit(self):
        while xbmc.getCondVisibility('Window.IsActive(3000)') == 1:
            control = 100
            for i in range(len(self.images)):
                control += 1
                self.getControl(control).setImage(self.images[i])
                xbmc.sleep(1000)

Any ideas?
Thanks

Viewing all articles
Browse latest Browse all 84004

Trending Articles