I'm building a python add-in tool.
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. When the user is done their series of clicks, is there a way to end/terminate the tool?
I tried the deactivate function but it doesn't seem to work.
It seems I can only end the tool by selecting a different tool. Is there a keyboard shortcut to select another tool like the 'select elements' tool? Maybe I could emulate a keyboard shortcut?
I can't even click on the tool button in the toolbox to cancel the tool - is this normal?
Any other workarounds or am I missing something?
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. I'm not sure if there is a way for a Button to activate a Tool?