June 16th, 2013, 08: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, 11: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, 11: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, 06:37 PM