<br><br><div class="gmail_quote">2008/5/4 David <<a href="mailto:wizzardx@gmail.com">wizzardx@gmail.com</a>>:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">> What I want is display a window with a image, the user select a region of<br>
> the image, and the region value is passed to my program, my program slice<br>
> the image region, and analyze it.<br>
><br>
<br>
</div>If it's your apps own window, then getting a rectangle selected by the<br>
user is simple.<br>
<br>
1) Make skeleton x/gtk/wx/qt/etc app<br>
2) Add code to show an image<br>
3) Add code to capture mouse events<br>
4) Add code to show the 'rubber band' rectangle over the mouse selection area<br>
5) When the user releases the mouse, then extract the part of the<br>
rectangle between where a mouse button was clicked and where it was<br>
released.<br>
<br>
All this would be in the docs for the Python x/gtk/wx/qt/etc libs.<br>
Where is the difficulty?</blockquote><div> </div><div>Right now I don't have any difficulty :)<br>I just asked for a library to do that, if exist I don't have to write all the things from scratch (the selection part), but I am able to do my tasks easily with Xlib or Pygame.<br>
<br>Thanks for the help.<br><br>Cheers,<br><br>-- <br>Valério Valério<br><br><a href="http://www.valeriovalerio.org">http://www.valeriovalerio.org</a>
<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<font color="#888888"><br>
David.<br>
</font></blockquote></div><br><br clear="all"><br><br>