<?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 Terminate or deactivate add-in Tool when user is done in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/terminate-or-deactivate-add-in-tool-when-user-is/m-p/194208#M14897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm building a python add-in tool.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function of the tool isn't important, but essentially the user clicks on the tool in the toolbar and then performs a series of clicks on the map.&amp;nbsp; When the user is done their series of clicks, is there a way to end/terminate the tool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp;the deactivate function but it doesn't seem to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems I can only end the tool by selecting a different tool.&amp;nbsp; Is there a keyboard shortcut to select another tool like the 'select elements' tool?&amp;nbsp; Maybe I could emulate a keyboard shortcut?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't even click on the tool button in the toolbox to cancel the tool - is this normal?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other workarounds or am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One idea I had was maybe to have a Button instead of a Tool in the toolbar, and then have the Tool activated when the button is clicked, so at least the button could appear not depressed all the time and I could make it seem like the tool is deactivated by limiting mouse inputs.&amp;nbsp; I'm not sure if there is a way for a Button to activate a Tool?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Feb 2019 16:13:41 GMT</pubDate>
    <dc:creator>CatlinBartman</dc:creator>
    <dc:date>2019-02-22T16:13:41Z</dc:date>
    <item>
      <title>Terminate or deactivate add-in Tool when user is done</title>
      <link>https://community.esri.com/t5/python-questions/terminate-or-deactivate-add-in-tool-when-user-is/m-p/194208#M14897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm building a python add-in tool.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function of the tool isn't important, but essentially the user clicks on the tool in the toolbar and then performs a series of clicks on the map.&amp;nbsp; When the user is done their series of clicks, is there a way to end/terminate the tool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp;the deactivate function but it doesn't seem to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems I can only end the tool by selecting a different tool.&amp;nbsp; Is there a keyboard shortcut to select another tool like the 'select elements' tool?&amp;nbsp; Maybe I could emulate a keyboard shortcut?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't even click on the tool button in the toolbox to cancel the tool - is this normal?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other workarounds or am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One idea I had was maybe to have a Button instead of a Tool in the toolbar, and then have the Tool activated when the button is clicked, so at least the button could appear not depressed all the time and I could make it seem like the tool is deactivated by limiting mouse inputs.&amp;nbsp; I'm not sure if there is a way for a Button to activate a Tool?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2019 16:13:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/terminate-or-deactivate-add-in-tool-when-user-is/m-p/194208#M14897</guid>
      <dc:creator>CatlinBartman</dc:creator>
      <dc:date>2019-02-22T16:13:41Z</dc:date>
    </item>
  </channel>
</rss>

