<?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: How can I programatically deactivate my python addin tool? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338548#M26569</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to wrap up for those who are following this or those who may find this post in the future...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only reasonable workaround that I have found (with lots of help from Nobbir) for this issue is to effectively create two different 'modes' for my GUI. &amp;nbsp;I created a button to toggle between the two modes. &amp;nbsp;When the button is pressed certain controls are enabled while others are disabled. The enabled states are reversed each time the button is pressed. &amp;nbsp;By doing this, I made it impossible for my conflicting &amp;nbsp;controls to be enabled at the same time. &amp;nbsp;Keep in mind that you need to set the enabled states appropriately on startup. &amp;nbsp;Additionally, I added some code to the execution of some of my addin controls so that the 'mode' will change automatically when that is likely to be the desired action for the user. &amp;nbsp;But having the toggle button ensures that the user can switch modes at any time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solution is less than ideal, but it is not terrible. &amp;nbsp;It is adequate for the immediate needs of my particular project. &amp;nbsp;In future development, I would like to see much better programmatic access to activate/deactivate and enable/disable states of addin contols.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Sep 2016 13:34:06 GMT</pubDate>
    <dc:creator>GregoryAllspaw</dc:creator>
    <dc:date>2016-09-23T13:34:06Z</dc:date>
    <item>
      <title>How can I programatically deactivate my python addin tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338525#M26546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I programatically deactivate my python addin tool at the end of tool execution? &amp;nbsp;In other words, I want to select my tool, click the map to execute my script logic, and then I want the tool to automatically deactivate or select a different tool by default. &amp;nbsp;Is this possible? &amp;nbsp;I'm currently working in ArcGIS 10.2, but I'm planning &amp;nbsp;to move on to 10.4, if this matters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 15:48:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338525#M26546</guid>
      <dc:creator>GregoryAllspaw</dc:creator>
      <dc:date>2016-08-31T15:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I programatically deactivate my python addin tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338526#M26547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;haven't used ...&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/python-addins/tool-class.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/python-addins/tool-class.htm"&gt;Tool class—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 15:54:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338526#M26547</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-08-31T15:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I programatically deactivate my python addin tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338527#M26548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Dan. &amp;nbsp;Yes, I have looked over the Help for Tool Class. &amp;nbsp;I should also point out the content of this post: &amp;nbsp;&lt;A href="https://community.esri.com/thread/88371"&gt;https://community.esri.com/thread/88371&lt;/A&gt;&amp;nbsp;. &amp;nbsp;I was hoping for some more recent information or new insight on this topic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 16:08:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338527#M26548</guid>
      <dc:creator>GregoryAllspaw</dc:creator>
      <dc:date>2016-08-31T16:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I programatically deactivate my python addin tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338528#M26549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see also&amp;nbsp;&lt;A href="https://community.esri.com/thread/88371"&gt;https://community.esri.com/thread/88371&lt;/A&gt;&amp;nbsp;. &amp;nbsp;I'm hoping for more recent info or new insight on this topic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 16:10:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338528#M26549</guid>
      <dc:creator>GregoryAllspaw</dc:creator>
      <dc:date>2016-08-31T16:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I programatically deactivate my python addin tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338529#M26550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be a good idea then to point that out to the documentation people at the bottom right of the page I sent. &amp;nbsp;They are pretty good about addressing topics that are found to be in error or, in this case, not quite as advertised. &amp;nbsp;A reference to the link you posted and your attempts in code might flag more than documentation changes since I doubt that this would be classified as a 'bug', perhaps a 'placeholder' for future enhancements... or at its worst a mis-representation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 16:15:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338529#M26550</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-08-31T16:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: How can I programatically deactivate my python addin tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338530#M26551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm afraid you cannot deactivate programmatically &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&amp;nbsp;What do you want to achieve by deactivating the add-in? Not to be able to use it in the same session? or next time you open ArcMap?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 16:20:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338530#M26551</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2016-08-31T16:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I programatically deactivate my python addin tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338531#M26552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can see situations when any deactivation of a tool would be useful (not just tied in to Arc* software). &amp;nbsp;For example, to select something, when an on-click (new parlance?) has occured, the tool becomes deactivated until it is selected again. &amp;nbsp;By deactivation, I would normally assume that one could specify the default tool as becoming active. &amp;nbsp;But, I left behind the world of writing stuff for user interaction a long time ago, so maybe things are different now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 16:28:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338531#M26552</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-08-31T16:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: How can I programatically deactivate my python addin tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338532#M26553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm wanting to deactivate the tool, as in making it no longer the active tool. I'm not trying to disable it, as in grayed out and unavailable. &amp;nbsp;My reason for wanting this is that some of my other addin items will crash ArcMap if this tool is actively selected. &amp;nbsp;Nothing ever crashes if the tool is NOT the active tool. &amp;nbsp;So I'm just wanting to deactivate it as soon as the user has completed its task.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 16:29:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338532#M26553</guid>
      <dc:creator>GregoryAllspaw</dc:creator>
      <dc:date>2016-08-31T16:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: How can I programatically deactivate my python addin tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338533#M26554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In short, this particular tool works perfectly on its own. &amp;nbsp;My other addin items work perfectly on their own. &amp;nbsp;But they don't play nice together if the tool is left active. &amp;nbsp;The other items utilize a tkinter user input dialog (which I have read can be problematic with arcpy addins). &amp;nbsp;I believe there is a problem when the tool is left active because both the tool and the tkinter items are looping as they wait for more user interaction. &amp;nbsp;But again, everything works fine unless the tool is left active when the tkinter dialogs are launched (by a button).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 16:47:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338533#M26554</guid>
      <dc:creator>GregoryAllspaw</dc:creator>
      <dc:date>2016-08-31T16:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I programatically deactivate my python addin tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338534#M26555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to be precise – you are using a Tool Class, right? You want to deactivate it “as soon a user has completed its task” – is there is any mechanism the tool can be aware of when the task is done? It has to happen before the Tkinter dialogs are launched – how do you launch the Tkinter dialog? By clicking on another button or tool?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 16:57:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338534#M26555</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2016-08-31T16:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I programatically deactivate my python addin tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338535#M26556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I'm using a tool class. &amp;nbsp;It is a tool that is used to click once on the map, and then the script uses the mousedown point to execute some code. &amp;nbsp;I would like for the last action of the code to be the deactivation of the tool. &amp;nbsp;If the user wanted to click another point using this tool they would have to reselect the tool from the toolbar. &amp;nbsp;As it stands right now, the tool remains active and the user can click the map as many times as they want. &amp;nbsp;This would be fine if it were not for the conflict with the tikinter dialog that is launched from several other buttons (not tools). &amp;nbsp;Clicking a button does not deactivate a tool...at least, not automatically. &amp;nbsp;I would love to know how to code that, if possible. &amp;nbsp;I'm not necessarily against the tool staying active, but it isn't necessary in most circumstances and I'm just trying to eliminate the conflict with my other addin items.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 18:11:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338535#M26556</guid>
      <dc:creator>GregoryAllspaw</dc:creator>
      <dc:date>2016-08-31T18:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I programatically deactivate my python addin tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338536#M26557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an idea – just tried and it works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In any of the methods of the Tool class, such as OnDblClick, write this line of code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;self.enabled = False&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, whenever you want to deactivate the tool, just double-click anywhere on the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’m still trying to figure out how can I activate it back. If you have any other button or tool you can use one of those methods to enable it to True. I’ll get back once I get a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 19:35:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338536#M26557</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2016-08-31T19:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I programatically deactivate my python addin tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338537#M26558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nobbir, I really appreciate your help on this, but we are still having a miscommunication. &amp;nbsp;I don't want to &lt;STRONG&gt;disable&lt;/STRONG&gt; the tool...I want to &lt;STRONG&gt;deactivate&lt;/STRONG&gt; it. &amp;nbsp;These are two different things. &amp;nbsp;I still want the user to be able to select the tool whenever they want. I just don't want it to be left as the active tool after they click the map. &amp;nbsp;After they click the map with this tool, they will be briefly handling the result of clicking the tool (which does not logically include selecting a different tool), and then they will be moving on to something else entirely....which is likely to include clicking one of the buttons that initiates a tkinter dialog. &amp;nbsp;I could, of course, instruct my users to make sure they select a different tool before moving on (selecting any esri standard tool would do the trick and produce the desired result). &amp;nbsp;However, I think this is kind of a ridiculous thing to ask of my users...they are going to forget, and it is going to keep crashing when they do. &amp;nbsp;Nobody is accustomed to a GUI that insists that you 'unpress' one button before you press another....that should be handled by the coding behind the GUI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 20:04:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338537#M26558</guid>
      <dc:creator>GregoryAllspaw</dc:creator>
      <dc:date>2016-08-31T20:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I programatically deactivate my python addin tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338538#M26559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greg – I understand your problem. Right now I don’t see any other way to “deactivate”. The deactivate method in Tool class is only triggered when the tool is disabled. I’m end of my ideas ☹&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share with us if you find a good way to achieve your goal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 20:44:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338538#M26559</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2016-08-31T20:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I programatically deactivate my python addin tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338539#M26560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;going back to my original comment, perhaps it needs to become 'deactivated' rather than 'deactivate' a small but subtle difference in meaning, so perhaps a note to the linking page, asking for elaboration on what it actually does would go a long way... I will leave it in the hands of those still active on deactivate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 20:49:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338539#M26560</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-08-31T20:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I programatically deactivate my python addin tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338540#M26561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nobbir and Dan, thanks for your prompt attention to my post. &amp;nbsp;I appreciate your time, and I will definitely let you know if I find a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nobbir, I did toy around with your disabling&amp;nbsp;idea, hoping that I could do something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;self.enabled = False&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;self.enabled = True&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I was hoping that disabling would kick the active tool to some other tool by default and then enabling again immediately would make my tool available again (but not active)..... but it didn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dan, I will take your advice and see if I can alert the appropriate people to this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 21:03:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338540#M26561</guid>
      <dc:creator>GregoryAllspaw</dc:creator>
      <dc:date>2016-08-31T21:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I programatically deactivate my python addin tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338541#M26562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you haven’t browsed this topic yet ☺&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;http://desktop.arcgis.com/en/arcmap/latest/analyze/python-addins/managing-the-state-of-add-in-types.htm#GUID-F8454EED-0371-49E9-BFC7-D820B00C62C4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 21:23:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338541#M26562</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2016-08-31T21:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I programatically deactivate my python addin tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338542#M26563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so I'm trying to go the route of temporarily disabling the tool as part of the script execution of one of my other buttons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The name of my tool class that I'm trying to disable is 'Identify'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I add this line to my button script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Identify.enabled = False&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it runs without error, but does nothing. &amp;nbsp;My Identify tool is still enabled and functioning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 17:05:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338542#M26563</guid>
      <dc:creator>GregoryAllspaw</dc:creator>
      <dc:date>2016-09-01T17:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I programatically deactivate my python addin tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338543#M26564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you message me the config file (located where the makeaddin.py file is)? There might be some name conflict.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 17:09:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338543#M26564</guid>
      <dc:creator>NobbirAhmed</dc:creator>
      <dc:date>2016-09-01T17:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: How can I programatically deactivate my python addin tool?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338544#M26565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nobbir,&lt;/P&gt;&lt;P&gt;Did you receive my config file and have a chance to look at it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2016 12:38:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-programatically-deactivate-my-python/m-p/338544#M26565</guid>
      <dc:creator>GregoryAllspaw</dc:creator>
      <dc:date>2016-09-07T12:38:16Z</dc:date>
    </item>
  </channel>
</rss>

