Sleep function & DialogProgress
#1
hi guys,
i want to sleep my script with the sleep command for 20 seconds while i do some processing on a remote client but i also want to try and show a dialogprogress bar to the user so they dont think xbmc has locked up. does anyone know if i can do this and, if so, how i could code it ? i've tried placing the amount of time to sleep in a variable and then calling a dialogprogress bar with this variable specified in the command but it doesn't work. thnx in advance to anyone who can help.
Reply
#2
Quote:time2wait=20
dialog=xbmcgui.dialoprgress()
dialog.create("title","please wait...")
step=int(100.0/time2wait)
for n in range(time2wait):
   wait.update(n*step)
   time.sleep(1)
print "ready to go"
Reply
#3
works perfectly. thanks very much :bowdown:
Reply

Logout Mark Read Team Forum Stats Members Help
Sleep function & DialogProgress0