Can I embed a tool within a custom dialog to get XY location?

I have built a custom dialog box and I want to embed a tool within that box to get XY location of point. Is it doable using wxpython?
Any advice would be helpful here. Thanks.

Ibraheem Khan wrote:

I have built a custom dialog box and I want to embed a tool within
that box to get XY location of point. Is it doable using wxpython?

WHAT point?

Every window already knows its own location. Sometimes you have to
convert between coordinate systems (relative to the window, relative to
the parent frame, relative to the desktop), but that's always available.

If you want to track the mouse, that information is available in the
mouse event objects.

Tell us a little more what you want, and we can advise you.

···

--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

I have a button created using Python Add-Ins which pops up a dialog box which is built using wxpython. I am wondering if I can place a tool within that dialog box to get location coordinates of layer (basically select that layer). Once a layer is selected, it will fire back some values to the already open dialog box. All of this is done in ArcGIS, any advice on how to get cursor co-ordinates in ArcGIS data view would be very helpful. Thanks.

···

On Wed, May 14, 2014 at 12:36 PM, Tim Roberts timr@probo.com wrote:

Ibraheem Khan wrote:

I have built a custom dialog box and I want to embed a tool within

that box to get XY location of point. Is it doable using wxpython?

WHAT point?

Every window already knows its own location. Sometimes you have to

convert between coordinate systems (relative to the window, relative to

the parent frame, relative to the desktop), but that’s always available.

If you want to track the mouse, that information is available in the

mouse event objects.

Tell us a little more what you want, and we can advise you.

Tim Roberts, timr@probo.com

Providenza & Boekelheide, Inc.

You received this message because you are subscribed to a topic in the Google Groups “wxPython-users” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/wxpython-users/OCZ8flsNb6A/unsubscribe.

To unsubscribe from this group and all its topics, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

So, you have an ArcGIS window, you placed a button on that window,
that button fires up a wxPython dialog box (as a separate process?),
and you want to be able to manipulate things in that original ArcGIS
window?
That’s not really a wxPython question. You’re going to need to ask
the ArcGIS people about this.

···

Ibraheem Khan wrote:

      I

have a button created using Python Add-Ins which pops up a
dialog box which is built using wxpython. I am wondering if I
can place a tool within that dialog box to get location
coordinates of layer (basically select that layer). Once a
layer is selected, it will fire back some values to the
already open dialog box. All of this is done in ArcGIS, any
advice on how to get cursor co-ordinates in ArcGIS data view
would be very helpful.

-- Tim Roberts, Providenza & Boekelheide, Inc.

timr@probo.com

Only thing that I want to figure out whether wxPython can identify cursor location when it is clicked in data view inside ArcGIS. So it basically involves both wxPython and ArcGIS.

···

On Wed, May 14, 2014 at 12:50 PM, Tim Roberts timr@probo.com wrote:

Ibraheem Khan wrote:

      I

have a button created using Python Add-Ins which pops up a
dialog box which is built using wxpython. I am wondering if I
can place a tool within that dialog box to get location
coordinates of layer (basically select that layer). Once a
layer is selected, it will fire back some values to the
already open dialog box. All of this is done in ArcGIS, any
advice on how to get cursor co-ordinates in ArcGIS data view
would be very helpful.

So, you have an ArcGIS window, you placed a button on that window,

that button fires up a wxPython dialog box (as a separate process?),
and you want to be able to manipulate things in that original ArcGIS
window?

That's not really a wxPython question.  You're going to need to ask

the ArcGIS people about this.

-- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.

You received this message because you are subscribed to a topic in the Google Groups “wxPython-users” group.

To unsubscribe from this topic, visit https://groups.google.com/d/topic/wxpython-users/OCZ8flsNb6A/unsubscribe.

To unsubscribe from this group and all its topics, send an email to wxpython-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ibraheem Khan wrote:

Only thing that I want to figure out whether wxPython can identify
cursor location when it is clicked in data view inside ArcGIS. So it
basically involves both wxPython and ArcGIS.

If the ArcGIS data view is not a wxPython window, then the wxPython app
won't get any notification when the click happens.

···

--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.