Hi Michael,<br><br>thanks for answering. I actually did not find a function to pick the coordinates of a point by a mouse click, could you please point me the function that I should use?<br><br>Thanks in advance,<br><br>madi<br>
<br><div class="gmail_quote">On Tue, Aug 16, 2011 at 2:47 AM, Michael Barton <span dir="ltr">&lt;<a href="mailto:Michael.Barton@asu.edu">Michael.Barton@asu.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Maid,<br>
<br>
There are already methods for capturing mouse clicks and drags in the several modules that control the display. This is clear given the fact that you can use a mouse to measure, zoom, profile, etc. Please do not add new ones. Use the existing classes and methods.<br>

<br>
Michael Barton<br>
School of Human Evolution &amp;Social Change<br>
Center for Social Dynamics &amp; Complexity<br>
Arizona State University<br>
<br>
...Sent from my iPad<br>
<br>
On Aug 15, 2011, at 1:04 PM, &quot;<a href="mailto:grass-dev-request@lists.osgeo.org">grass-dev-request@lists.osgeo.org</a>&lt;mailto:<a href="mailto:grass-dev-request@lists.osgeo.org">grass-dev-request@lists.osgeo.org</a>&gt;&quot; &lt;<a href="mailto:grass-dev-request@lists.osgeo.org">grass-dev-request@lists.osgeo.org</a>&lt;mailto:<a href="mailto:grass-dev-request@lists.osgeo.org">grass-dev-request@lists.osgeo.org</a>&gt;&gt; wrote:<br>

<br>
Date: Mon, 15 Aug 2011 19:17:48 +0200<br>
From: Margherita Di Leo &lt;&lt;mailto:<a href="mailto:dileomargherita@gmail.com">dileomargherita@gmail.com</a>&gt;<a href="mailto:dileomargherita@gmail.com">dileomargherita@gmail.com</a>&lt;mailto:<a href="mailto:dileomargherita@gmail.com">dileomargherita@gmail.com</a>&gt;&gt;<br>

Subject: [GRASS-dev] catch mouse click from MapDisplay<br>
To: &lt;mailto:<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a>&gt; <a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a>&lt;mailto:<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a>&gt;<br>

Message-ID:<br>
       &lt;&lt;mailto:<a href="mailto:CA%2BV6ZhWFsG3TzDFDu-0YPV5WPDRw9mQw_NNrn3cKNi1DDgOYbA@mail.gmail.com">CA+V6ZhWFsG3TzDFDu-0YPV5WPDRw9mQw_NNrn3cKNi1DDgOYbA@mail.gmail.com</a>&gt;<a href="mailto:CA%2BV6ZhWFsG3TzDFDu-0YPV5WPDRw9mQw_NNrn3cKNi1DDgOYbA@mail.gmail.com">CA+V6ZhWFsG3TzDFDu-0YPV5WPDRw9mQw_NNrn3cKNi1DDgOYbA@mail.gmail.com</a>&lt;mailto:<a href="mailto:CA%2BV6ZhWFsG3TzDFDu-0YPV5WPDRw9mQw_NNrn3cKNi1DDgOYbA@mail.gmail.com">CA+V6ZhWFsG3TzDFDu-0YPV5WPDRw9mQw_NNrn3cKNi1DDgOYbA@mail.gmail.com</a>&gt;&gt;<br>

Content-Type: text/plain; charset=&quot;utf-8&quot;<br>
<div><div></div><div class="h5"><br>
Hi Devs,<br>
<br>
For my GSoC project I am looking for a way to catch the coordinates of a<br>
point by a mouse click over the Map Display. I was wondering if it&#39;s more<br>
&quot;wise&quot; to edit the existing mapdisp_window.py file or define my own<br>
OnLeftDown function in my code, which would override the one of class<br>
BufferedWindow, or? As I am not allowed to edit the core source code, I ask<br>
you devs what is better to do.<br>
<br>
Thanks,<br>
<br>
madi<br>
<br>
--<br>
Eng. Margherita Di Leo<br>
Ph.D. Candidate<br>
Methods and Technologies for Environmental Monitoring<br>
Department of Environmental Engineering and Physics (DIFA)<br>
<br>
University of Basilicata<br>
Campus Macchia Romana<br>
85100 - Potenza<br>
Italy<br>
<br>
</div></div>Office: <a href="tel:%2B39-0971205360" value="+390971205360">+39-0971205360</a>&lt;tel:<a href="tel:%2B39-0971205360" value="+390971205360">+39-0971205360</a>&gt;<br>
</blockquote></div><br><br clear="all"><br>-- <br><span style="color: rgb(102, 102, 102);">Eng. Margherita Di Leo</span><br style="color: rgb(102, 102, 102);"><span style="color: rgb(102, 102, 102);">Ph.D. Candidate</span><br style="color: rgb(102, 102, 102);">
<span style="color: rgb(102, 102, 102);">Methods and Technologies for Environmental Monitoring</span><br style="color: rgb(102, 102, 102);"><span style="color: rgb(102, 102, 102);">Department of Environmental Engineering and Physics (DIFA)</span><br style="color: rgb(102, 102, 102);">
<br style="color: rgb(102, 102, 102);"><span style="color: rgb(102, 102, 102);">University of Basilicata </span><br style="color: rgb(102, 102, 102);"><span style="color: rgb(102, 102, 102);">Campus Macchia Romana</span><br style="color: rgb(102, 102, 102);">
<span style="color: rgb(102, 102, 102);">85100 - Potenza </span><br style="color: rgb(102, 102, 102);"><span style="color: rgb(102, 102, 102);">Italy</span><br style="color: rgb(102, 102, 102);"><br style="color: rgb(102, 102, 102);">
<span style="color: rgb(102, 102, 102);">Office: +39-0971205360</span><br style="color: rgb(102, 102, 102);"><span style="color: rgb(102, 102, 102);"></span><br><br><br>