I'm terrible at python and need your help with two questions
#7
Not sure why it doesn't work for you, Im also on eden.
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()
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.
Reply


Messages In This Thread
RE: I'm terrible at python and need your help with two questions - by Kr0nZ - 2013-02-18, 22:30
Logout Mark Read Team Forum Stats Members Help
I'm terrible at python and need your help with two questions0