Hi evreyone,
I am working on this exercise I am not sure of...but I believe there is an error in it.
This is from the Programming ArcGIS 10.1 with Python cookbook on page 222 that says:
import arcpy
import pythonaddins
class ButtonClassImportWildfires(object):
"""Implementation for WildfireAddIn_addin.button (Button)"""
def __init__(self):
self.enabled = True
self.checked = False
def onClick(self):
pass
Does it seem correct to you ?
Then it says:
Remove the pass statement from the onClick event.
In Chapter 7, you created a custom script tool that loads wildfire data from a text
file to a feature class. Inside the onClick event, call this Load Wildfires from Text
custom script tool so that it displays the user interface for selecting the text file,
template, and feature class to write to.
def onClick(self):
LoadWildfires_wildfire()
Save the file.
When I open that addin to my ArcMap and I can only see this :
