Reading coords from a scrolled Tkinter Canvas widget?

Phlip phlip_cpp at
Mon Jun 3 01:07:56 CEST 2002

G. Willoughby wrote:

>>Your code appears not to grok canvasx and canvasy. They translate event.x
>>style coordinates to canvas model coordinates.
> Hmmm i know, have you any code to grab the canvasx and canvasy?

x = self.thumbnail.canvasx(event.x)

>>BTW you could be using a Python Megawidgets Pmw.ScrolledCanvas here. More
>>features less pain.
> I could do but im trying to keep imports to a minimum and keep its
> portability.

But everyone else is doing it!

  --  Creationism: The belief that God is too stupid to be able
      to invent a Universe where life can spontaneously arise  --

More information about the Python-list mailing list