Originally Posted by JimmPooJimmPoo
I just tested a script with an animated .gif and it didn't worked. The image stays still. But, as Bogdan said, you can display them in sequence so it will look like a spin.
To call the function for flipping the coin, you can use canvas.bind, as Bogdan also told you. For example:
import e32, appuifw, graphics
path = 'E:\\Python\\comeback.gif'
img = graphics.Image.open(path)
# handle the flip here ...
canvas = appuifw.Canvas(event_callback = None, redraw_callback = handle_redraw)
appuifw.app.body = canvas
appuifw.app.body = 'full'
app_lock = e32.Ao_lock()
Hope it helps,