Redraw and xbmc.sleep
#1
in ooba it takes some time downloading and parsing an url after you click a menu item.

i would like to display the text: "downloading..." and then later switch to "parsing...". i have implemented that, but it does not redraw. it is as-if xbmc only renders the screen when it is not actively running some python code. so in order to force a redraw i have tried xbmc.sleep(1) . and it does make a redraw, but it never continues after that line. i can still get onaction events, but when i exit (pressing "back") it still says "ooba (running)".

i think there is something wrong with xbmc.sleep ... does anybody have an alternative method of forcing a redraw?
Reply
#2
xbmc.sleep isnt a command is it? its time.sleep

edit:
sorry just checked, yes the command is there id check your script log.



read the xbmc online-manual, faq and search the forums before posting! do not e-mail the xbmc-team asking for support!
read/follow the forum rules! note! team-xbmc never have and never will host or distribute ms-xdk binaries/executables!
Reply
#3
the xbmc.sleep command enters a continuous loop if any positive intger is supplied.

i posted in the development section a question how it could be fixed.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply

Logout Mark Read Team Forum Stats Members Help
Redraw and xbmc.sleep0