Jump to content

Img help.

- - - - -

  • Please log in to reply
No replies to this topic

#1
masterinthesith

masterinthesith

    Newbie

  • Members
  • Pip
  • 2 posts
Okay I am sure you guys know about the whole looking at 2 of the same pictures good and hard and then some crazy face pops up and screams at you. Well I am doing a school assignment and that's what i wanted to do. It was real easy i just have one problem.

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()





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users