How to run a loop with progress bar?
#1
Code:
foundroot = root.findall('setting')
    for country in foundroot:
        settingelement = country.find("setting")
        findvalue = country.get('default')
        print(findvalue)

This something I'm trying. I wanna show a progress bar with this. Is anyone know? Plz help me

How this can do in KodiHuhHuh?
Reply
#2
Take a look at the stuff in the xbmcgui module. There's a progress bar and a background progress bar that should do what you want.

http://mirrors.xbmc.org/docs/python-docs...mcgui.html
Reply
#3
and a progress control as well, if your addon provides it's own gui.
http://mirrors.xbmc.org/docs/python-docs...olProgress
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
#4
(2017-01-05, 00:34)ronie Wrote: and a progress control as well, if your addon provides it's own gui.
http://mirrors.xbmc.org/docs/python-docs...olProgress

This one is broken. At least I couldn't make it work even though I had all necessary texture images (taken from some ancient XBMC version). It was still displayed like garbage no matter what I tried. Maybe, the XML-based progressbar works, I don't know.
Reply
#5
yup, no problem if you use WindowXML / WindowXMLDialog.

i have little to no experience with the Window / WindowDialog classes
... and frankly, i would like to keep it that way :-)
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
#6
(2017-01-05, 16:41)ronie Wrote: yup, no problem if you use WindowXML / WindowXMLDialog.

i have little to no experience with the Window / WindowDialog classes
... and frankly, i would like to keep it that way :-)

Not a fan of custom ui, or not a fan of the xml based classes?
Reply
#7
(2017-01-06, 02:42)Protocol-X Wrote:
(2017-01-05, 16:41)ronie Wrote: yup, no problem if you use WindowXML / WindowXMLDialog.

i have little to no experience with the Window / WindowDialog classes
... and frankly, i would like to keep it that way :-)

Not a fan of custom ui, or not a fan of the xml based classes?

eh, i am a big fan of the XML based classes.
it's the non XML based ones i dislike. :-)

might be because i started out as a skinner, so creating a gui in xml is pretty easy for me.
but other than that, the non XML based classes are very limited compared to the XML based ones.
oh, and did i already mention i find them buggy as well? ;-)
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
#8
(2017-01-06, 02:57)ronie Wrote:
(2017-01-06, 02:42)Protocol-X Wrote:
(2017-01-05, 16:41)ronie Wrote: yup, no problem if you use WindowXML / WindowXMLDialog.

i have little to no experience with the Window / WindowDialog classes
... and frankly, i would like to keep it that way :-)

Not a fan of custom ui, or not a fan of the xml based classes?

eh, i am a big fan of the XML based classes.
it's the non XML based ones i dislike. :-)

might be because i started out as a skinner, so creating a gui in xml is pretty easy for me.
but other than that, the non XML based classes are very limited compared to the XML based ones.
oh, and did i already mention i find them buggy as well? ;-)

Ah sorry I misread. Smile I agree on the flexibility 100%, just wish there was a way to make them more dynamic even if it was something like controlx.addcontrol(controlFromXml('path/xxx/xxxx'), newcontrolid) not like an include, even know they don't seem to work on addons, but more for a way to dynamically controls when using APIs that always change so you do not need to make an update every time an API changes. This way you could simply build an army of control xml files and then plug them in whenever needed.
Reply

Logout Mark Read Team Forum Stats Members Help
How to run a loop with progress bar?0