<?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: Is Python Toolbox Tool Foreground Execution possible with Access to the Map? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/is-python-toolbox-tool-foreground-execution/m-p/1248444#M66573</link>
    <description>&lt;P&gt;I am interested in a rather interactive behaviour of the tool, so the process should accept an arbitrary number of updates of the threshold value. The Tkinter window opens with a slider on it and users should be able to try various values, where the results could be almost updated in real time. This preferrable behaviour would be possible if ArcMap didn't lock the main window during Tool execution...&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jan 2023 10:06:48 GMT</pubDate>
    <dc:creator>Manu</dc:creator>
    <dc:date>2023-01-16T10:06:48Z</dc:date>
    <item>
      <title>Is Python Toolbox Tool Foreground Execution possible with Access to the Map?</title>
      <link>https://community.esri.com/t5/python-questions/is-python-toolbox-tool-foreground-execution/m-p/1248382#M66571</link>
      <description>&lt;P&gt;I have some Python Toolbox for ArcMap 10.8. Now I want the user to check an output and to give feedback before the tool continues. The purpose of this is to adjust a threshold value to create a mask from a raster with continuous values.&lt;BR /&gt;To this end, I used a Tkinter prompt that creates a window in which a user can enter information. The mask is calculated and displayed on the map. Subsequently, the user can adjust the threshold value and create a new mask based on that new value.&lt;/P&gt;&lt;P&gt;My problem is that running the tool in the background leads to failure of the code. The window is not displayed and the tool returns an error. When running in the foreground, however, the user cannot access the map. To inspect the mask and to decide about a new threshold value, the user must be able to view the mask on the map.&lt;/P&gt;&lt;P&gt;Is there a way to run the tool in background part of the time or to display the Tkinter window in the foreground while the tool main window is hidden?&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2023 21:36:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-python-toolbox-tool-foreground-execution/m-p/1248382#M66571</guid>
      <dc:creator>Manu</dc:creator>
      <dc:date>2023-01-15T21:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is Python Toolbox Tool Foreground Execution possible with Access to the Map?</title>
      <link>https://community.esri.com/t5/python-questions/is-python-toolbox-tool-foreground-execution/m-p/1248391#M66572</link>
      <description>&lt;P&gt;why not split the process into a prep stage and an execute stage.&lt;/P&gt;&lt;P&gt;"Tasks" are designed for this sort of thing&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/tasks/design-a-task.htm" target="_blank"&gt;Design a task item—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 01:50:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-python-toolbox-tool-foreground-execution/m-p/1248391#M66572</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-01-16T01:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is Python Toolbox Tool Foreground Execution possible with Access to the Map?</title>
      <link>https://community.esri.com/t5/python-questions/is-python-toolbox-tool-foreground-execution/m-p/1248444#M66573</link>
      <description>&lt;P&gt;I am interested in a rather interactive behaviour of the tool, so the process should accept an arbitrary number of updates of the threshold value. The Tkinter window opens with a slider on it and users should be able to try various values, where the results could be almost updated in real time. This preferrable behaviour would be possible if ArcMap didn't lock the main window during Tool execution...&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 10:06:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-python-toolbox-tool-foreground-execution/m-p/1248444#M66573</guid>
      <dc:creator>Manu</dc:creator>
      <dc:date>2023-01-16T10:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is Python Toolbox Tool Foreground Execution possible with Access to the Map?</title>
      <link>https://community.esri.com/t5/python-questions/is-python-toolbox-tool-foreground-execution/m-p/1248515#M66574</link>
      <description>&lt;P&gt;Perhaps Arcobjects allows for such behaviour.&amp;nbsp; You can look at the non-python SDKs to see if what you would like is possible within arcmap or pro&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 18:02:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/is-python-toolbox-tool-foreground-execution/m-p/1248515#M66574</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2023-01-16T18:02:31Z</dc:date>
    </item>
  </channel>
</rss>

