June 16th, 2013, 07:56 AM
i want to take the user to input the number of clicks he wants to make on an image. say 5 clicks. i want to figure out the x,y coordinates of the point of click and the corresponding pixel value .i want to store the pixel values in an array.i tried using for loop. but it doesnt seem to work. since am new to python, i am not very sure how to go ahead. any help is welcome!
June 16th, 2013, 10:04 AM
What library are you using? If you are using pygame I could assist you. If you are using something else I'm sure others could assist you.
June 16th, 2013, 10:15 AM
I used tkinter,pil. I created a canvas,added the image and used canvas.bind<BUTTON 1> to detect the click.
Originally Posted by Mekire
June 16th, 2013, 05:37 PM