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.
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.
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.
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?