With Python Add-In Wizard I created a ButtonTool with which I:
Here is my code:
Import Tkinterclass ToolCoord(object): def __init__(self): self.enabled = True self.shape = "NONE" self.cursor = 3 def onMouseDownMap(self, x, y, button, shift): pt = arcpy.PointGeometry(arcpy.Point(x,y)) main = Tkinter.Tk() lb = Tkinter.Label(main, text = "UTM-Koordinaten:") lb.pack() t1 = Tkinter.Text(main, width=20, height=0) t1.insert("end", str(x)) t1.pack() t2 = Tkinter.Text(main, width=20, height=0) t2.insert("end", str
) t2.pack() main.mainloop()
أكثر...
- click in the map
- get the coordinates of the mouseclick-location in a dialog with textboxes
Here is my code:
Import Tkinterclass ToolCoord(object): def __init__(self): self.enabled = True self.shape = "NONE" self.cursor = 3 def onMouseDownMap(self, x, y, button, shift): pt = arcpy.PointGeometry(arcpy.Point(x,y)) main = Tkinter.Tk() lb = Tkinter.Label(main, text = "UTM-Koordinaten:") lb.pack() t1 = Tkinter.Text(main, width=20, height=0) t1.insert("end", str(x)) t1.pack() t2 = Tkinter.Text(main, width=20, height=0) t2.insert("end", str
أكثر...