Kodi Community Forum
Custom progress bar - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Custom progress bar (/showthread.php?tid=200537)



Custom progress bar - DanWho - 2014-07-24

Hi guys

New to xbmc and skinning.

Need to add a custom progress bar that reads values from a variable in the python script.

How would i go about setting up the <info></info> tag ?

Thanks in advance


RE: Custom progress bar - ronie - 2014-07-24

you don't need an <info> tag.
here's some pointers to get you started:

skin code:
Code:
<control type="progress" id="123">
    ...
</control>

python code:
Code:
self.getControl(123).setPercent(50)


http://mirrors.xbmc.org/docs/python-docs/13.0-gotham/xbmcgui.html#ControlProgress


RE: Custom progress bar - DanWho - 2014-07-25

Tx ronnie


RE: Custom progress bar - Lunatixz - 2016-08-11

Was this control deprecated? I'm unable to get it working...
Kodi 16.1 Windows
Code:
<control type="progress" id="5007">
                    <posx>430</posx>
                    <posy>225r</posy>
                    <width>1400</width>
                    <height>4</height>
                    <texturebg>seek/progresscache_back.png</texturebg>
                    <lefttexture border="0">seek/progresscache_left.png</lefttexture>
                    <midtexture border="0">seek/progresscache_mid.png</midtexture>
                    <righttexture border="0">seek/progresscache_right.png</righttexture>
                    <align>center</align>
                    <aligny>center</aligny>
                </control>
Code:
self.currentPlayInfoBar = self.getControl(5007)
        self.currentPlayInfoBar.setPercent(50)