Hi,

I am designing a simple image cropper which simply takes an image and use PIL 
to do the cropping.Now in order to do the cropping I simply draw a rectangle on 
the image by dragging the mouse over the image.I then use button press and 
button release events to find the mouse postition and send across the tuple to 
PILĀ  .Everything works fine but what I need is a way to show the user a dotted 
rectangle as he drags across the mouse as in every other standard image 
editor.I have learnt that using gnomecanvas will do that but given my time 
constraints and the lack of a tutorial on pygtk ,I used gtk.image + event box 
to do the above.

Can someone point to using gnomecanvas in the following directions:
1.Load an image into the canvas from file as well as pixbuf.
2.Draw a dotted rectangle
3.Fire and capture mouse events
4.Use PIL 

I basically want to know about point 2. Also,will implementing cairo be easy on 
glade and pygtk?

Regards,
Abhishek

" life isn't heavy enough,it flies away and floats far above action"


      Start at the new Yahoo!7 for a better online experience. www.yahoo7.com.au
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to