<table cellspacing='0' cellpadding='0' border='0' ><tr><td valign='top' style='font: inherit;'>Hi,<br><br>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.<br><br>Can someone point to using gnomecanvas in the following directions:<br>1.Load an image into the canvas from file as well as pixbuf.<br>2.Draw a dotted rectangle<br>3.Fire and capture mouse events<br>4.Use PIL
 <br><br>I basically want to know about point 2. Also,will implementing cairo be easy on glade and pygtk?<br><br>Regards,<br>Abhishek<br><br>" life isn't heavy enough,it flies away and floats far above action"</td></tr></table><br>







      <hr size=1>
Start at the new Yahoo!7 for a better online experience - <a href="http://au.rd.yahoo.com/mail/taglines/au/y7mail/default/*http://au.docs.yahoo.com/somethingwonderful/index.php?p1=brand&p2=other&p3=au&p4=tagline" target=_blank>Start Here</a>.