2013-02-18, 22:30
Not sure why it doesn't work for you, Im also on eden.
I just added this
to the onInit functions of one of my other gui addons, and it works..
does your log show any errors?
But anyway if you want to exit out of the script before the 10secs are up, you would need to go about it a different way, the while loop will block until its completed. You need to add an onAction() and listen for one of the "cancel" action IDs, but I not sure how you would then refresh the image.
I just added this
Code:
curSeconds = time.time()
imgControl = xbmcgui.ControlImage(100, 0, 1080, 720, "")
self.addControl(imgControl)
while (time.time() - curSeconds <= 10):
imgControl.setImage("")
imgControl.setImage("special://masterprofile/media/bell.jpg")
xbmc.sleep(500)
self.close()
does your log show any errors?
But anyway if you want to exit out of the script before the 10secs are up, you would need to go about it a different way, the while loop will block until its completed. You need to add an onAction() and listen for one of the "cancel" action IDs, but I not sure how you would then refresh the image.