[pygtk] implementing zooma and pan in pygtk

Billy Okal b.okal at jacobs-university.de
Mon Jun 22 22:50:32 WST 2009


hello

I am new to pygtk but familiar with python. I am trying to build a 
simple gui that allows zooming and panning (using arrows in 4 
directions) of images(maps) in png and svg formats. However I 
can't get the zooming an panning to work. Could someone offer 
help on this. I really need it fast so that I can start so real work 
using images. I already tried to use scrolling to implement the 
panning but I couldn't make it.

I show the images like this
im = gtk.Image()
im.set_from_file("something.png")
.
.
win.show_all


Thanks in advance

-- 
Bill



More information about the pygtk mailing list