When i compile the program it simply goes one by one if you will, hmmm how can i explain this. Basically instead of playing the scream as the same time as the exorcist face, it pops up with the image of 2 cars that are exactly the same, then i have to exit out of that picture. Then it screams and finally it shows up with the exorcist. So my question is, is there a function that automatically closes the first pic of the two cars, and how can i get the scream to play with the exorcist picture.
I messed around with it a bunch of times and couldn't get it, I asked my teacher he said use the close() function, and i did but it says it is not defined.
#Programmer Nicholas Fallon
#June 02, 2010
#207.py
from myro import*
import Image
def pressC():
entry = " "
while(entry != "C"):
entry = ask("Press C to continue")
speak("Find The difference between the two pictures")
def img1():
im = Image.open("cars.jpg")
im.show()
filename = "scream.wav"
playSpeech(filename)
def main():
pressC()
img1()
im = Image.open("exorcist.gif")
im.show()
main()


Sign In
Create Account

Back to top









