Re: Canvas clicking stuff

2006-02-20 Thread Tuvas
Ahh, exactly what I was looking for. Thanks for the help! Fredrik Lundh wrote: > Tuvas wrote: > > > I have a picture that is being displayed on a canvas interface, that I > > want to do the following. When a mouse button is clicked on the canvas, > > I want to pass to a function the X and Y coord

Re: Canvas clicking stuff

2006-02-20 Thread Fredrik Lundh
Tuvas wrote: > I have a picture that is being displayed on a canvas interface, that I > want to do the following. When a mouse button is clicked on the canvas, > I want to pass to a function the X and Y coordinates of where this > mouse button was pushed. use event bindings: http://effbot.org/tk

Re: Canvas clicking stuff

2006-02-20 Thread Sybren Stuvel
Tuvas enlightened us with: > I have a picture that is being displayed on a canvas interface, that > I want to do the following. [...] There are loads of GUI toolkits you could be using. Please read "How To Ask Questions The Smart Way": http://catb.org/~esr/faqs/smart-questions.html It's a very g

Re: Canvas clicking stuff

2006-02-20 Thread Tuvas
I guess I should have mentioned that the canvas is a Tkinter canvas, but, well, I guess that could be infered. -- http://mail.python.org/mailman/listinfo/python-list

Canvas clicking stuff

2006-02-20 Thread Tuvas
I have a picture that is being displayed on a canvas interface, that I want to do the following. When a mouse button is clicked on the canvas, I want to pass to a function the X and Y coordinates of where this mouse button was pushed. Futhermore, and I don't know if this is possible, I would like t