Can I use a window property to control a progress bar?
#1
Hi,

I have a progress control in a skin, which I want to control using a window property that's set in a Python script. Is this possible?

I've tried setting the info tag of the control to Window(10000).Property(progress), then calling xbmcgui.Window(10000).setProperty("progress", "50"), but the progress bar stays at zero percent.

The progress control wiki article says that the info tag accepts infolabels, but it doesn't go into further detail. Does it work only with infolabels that return numbers (if there is such a thing)? The setProperty() method only accepts strings.

Cheers,
Jon
Reply
#2
Can you access the Progress Control from python and then use the setPercent method: http://mirrors.xbmc.org/docs/python-docs...setPercent

This is how I've done it in one of my scripts (which uses WindowXML).
First get the reference to the control: https://github.com/elParaguayo/script.sq...fo.py#L157
And then update the progress bar: https://github.com/elParaguayo/script.sq...fo.py#L519
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
#3
(2017-03-02, 15:09)el_Paraguayo Wrote: Can you access the Progress Control from python and then use the setPercent method.

Thanks for your reply, but unfortunately I can't access the control from Python, as I'm not generating it using xbmcgui. It is part of the skin itself, in the standard OSD window.
Reply

Logout Mark Read Team Forum Stats Members Help
Can I use a window property to control a progress bar?0