[GRASS-dev] function to get mouse position - too vague

Zoltan zoltans at geograph.co.za
Thu Jul 22 04:37:01 PDT 2021


Hi again,
OK, I was far to vague.......
What I am looking for is where in the digitising functions the 
mouse-clicks are collected to add/edit/etc the geometry elements.

I'm scratching through the 'C' progs and .py folders ..........but some 
guidance would shorten my quest.

Thanks and keep well,
Zoltan


On 2021/07/21 17:07, Zoltan wrote:
> Hi Devs,
>
> Is there a function that will return the coordinates of the mouse 
> pointer, if it is inside a graphics window?
> This on mouse-click.
>
> Ideally the return value would be:   button,x,y(,z)
>
> Even more ideally, if mouse hovers inside a graphics window, and a 
> keyboard key is press (say the letter 'k'), then the return value 
> would be "k,x,y(,z)"
>
> If any of you are old enough to have used Genamap, then I am looking 
> to emulate its 'gloc' command.
>
> TIA,
> Zoltan
>

-- 

=============================================
Zoltan Szecsei GPrGISc 0031
Geograph (Pty) Ltd.
GIS and Photogrammetric Services

Cape Town, South Africa.

Mobile: +27-83-6004028 (Signal, not WhatsApp)
www.geograph.co.za
=============================================



More information about the grass-dev mailing list