#flipbook click
from graphics import *
from time import sleep
W, H = 400, 400
win = GraphWin('Explosion ', W, H)
win.setCoords(0, 0 , 100, 100)
win.setBackground('grey')
for i in range(10):
p = win.checkMouse()
pos1 = Image(p, 'pos1.png')
pos1.draw(win)
pos1.undraw()
sleep(1)
pos2 = Image(p, 'pos2.png')
pos2.draw(win)
pos2.undraw()
sleep(1)
pos3 = Image(p, 'pos3.png')
pos3.draw(win)
pos3.undraw()
sleep(1)
pos4 = Image(p, 'pos4.png')
pos4.draw(win)
pos4.undraw()
sleep(1)
posf = Image(p, 'posf.png')
posf.draw(win)
posf.undraw()
sleep(1)
point = win.getMouse()
win.close()
Comments
Displaying 0 of 0 comments ( View all | Add Comment )