<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Addin Problem in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/addin-problem/m-p/38784#M3041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing to check is to make sure you are preserving the indentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy&amp;nbsp; 
import pythonaddins&amp;nbsp; 
class ButtonClassImportWildfires(object):&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; """Implementation for WildfireAddIn_addin.button (Button)"""&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; def __init__(self):&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.enabled = True&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.checked = False&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; def onClick(self):&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LoadWildfires_wildfire() &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:30:28 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2021-12-10T21:30:28Z</dc:date>
    <item>
      <title>Addin Problem</title>
      <link>https://community.esri.com/t5/python-questions/addin-problem/m-p/38783#M3040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi evreyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on this exercise I am not sure of...but I believe there is an error in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is from the Programming ArcGIS 10.1 with Python cookbook on page 222 that says:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;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&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does it seem correct to you ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then&amp;nbsp; it says:&lt;/P&gt;&lt;P&gt;Remove the pass statement from the onClick event.&lt;/P&gt;&lt;P&gt;In Chapter 7, you created a custom script tool that loads wildfire data from a text&lt;/P&gt;&lt;P&gt;file to a feature class. Inside the onClick event, call this Load Wildfires from Text&lt;/P&gt;&lt;P&gt;custom script tool so that it displays the user interface for selecting the text file,&lt;/P&gt;&lt;P&gt;template, and feature class to write to.&lt;/P&gt;&lt;P&gt;def onClick(self):&lt;/P&gt;&lt;P&gt;LoadWildfires_wildfire()&lt;/P&gt;&lt;P&gt;Save the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I open that addin to my ArcMap and I can only see this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="65611" alt="Toolbar button missing.tif.png" class="jive-image image-1" src="/legacyfs/online/65611_Toolbar button missing.tif.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:30:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/addin-problem/m-p/38783#M3040</guid>
      <dc:creator>DEAF_PROBERT_68</dc:creator>
      <dc:date>2021-12-10T21:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Addin Problem</title>
      <link>https://community.esri.com/t5/python-questions/addin-problem/m-p/38784#M3041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing to check is to make sure you are preserving the indentation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy&amp;nbsp; 
import pythonaddins&amp;nbsp; 
class ButtonClassImportWildfires(object):&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; """Implementation for WildfireAddIn_addin.button (Button)"""&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; def __init__(self):&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.enabled = True&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.checked = False&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; def onClick(self):&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LoadWildfires_wildfire() &lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:30:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/addin-problem/m-p/38784#M3041</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-10T21:30:28Z</dc:date>
    </item>
    <item>
      <title>Re: Addin Problem</title>
      <link>https://community.esri.com/t5/python-questions/addin-problem/m-p/38785#M3042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had the same problem once. As Jake suggested, it was a problem with my code. &lt;/P&gt;&lt;P&gt;Here's a similar post: &lt;A href="https://community.esri.com/thread/99541"&gt;missing icon image for python addin&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 16:48:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/addin-problem/m-p/38785#M3042</guid>
      <dc:creator>JoshuaChisholm</dc:creator>
      <dc:date>2015-02-26T16:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Addin Problem</title>
      <link>https://community.esri.com/t5/python-questions/addin-problem/m-p/38786#M3043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you add the python add in wizard, should it be saved under \USERS|your name|\Desktop\folder name ?&lt;/P&gt;&lt;P&gt;Can I save it anywhere in C hard drive ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 15:48:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/addin-problem/m-p/38786#M3043</guid>
      <dc:creator>DEAF_PROBERT_68</dc:creator>
      <dc:date>2015-02-27T15:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Addin Problem</title>
      <link>https://community.esri.com/t5/python-questions/addin-problem/m-p/38787#M3044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Python addin wizard can be saved anywhere on your C Drive.&amp;nbsp; What I would recommend is that you test the code without the LoadWildfire thing first.&amp;nbsp; This could be that you are not loading the module that contains the wildfire method into your code.&amp;nbsp; If you test without that first and it works, it might be a missing module throwing that error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 15:56:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/addin-problem/m-p/38787#M3044</guid>
      <dc:creator>AlexanderNohe1</dc:creator>
      <dc:date>2015-02-27T15:56:58Z</dc:date>
    </item>
  </channel>
</rss>

