Pan/Zoom Image class?

Diez B. Roggisch nospam-deets at web.de
Wed Oct 22 12:00:07 EDT 2003


Hi,

> I'm just getting started rewriting a small CAD/GIS like application
> for designating outlines of objects in photographs/images in Python.
> Is there a class out there that already handles panning and zooming
> along with lines that have been drawn on top of the object?  If got a
> simple scrolling canvas working and user designation of objects with
> the mouse.  But I'm wondering if there is an elegant solution that
> handles zooming too.  I'm using Tkinter with a canvas, but at this
> point I could switch to any GUI package.  Any recommendations?

You could go for pygame and/or pyopengl. I'm not sure if there is a way to
embed a pygame-window or opengl window into a canvas, but maybe you can
roll out your own toolkit-implementation on top of pygame. (There is even
one, based on pygame and opengl, but it seems to work only under windows,
which I don't have)

Diez




More information about the Python-list mailing list