AnsweredAssumed Answered

python add-in hanging due to while loop

Question asked by joosthoek on May 5, 2015
Latest reply on May 6, 2015 by joosthoek

I'm building a python add-in for ArcGIS desktop with a button which runs a while loop. Another button should close the while loop. In the while loop there is a continuous process going on which is important for the functionality of the add-in. But unfortunately the while loop causes the add-in, and therefore ArcGIS desktop, to hang.

 

I have tried time.sleep(.1) in the while loop. And I have tried the threading library. But nothing seems to work.

 

I was hoping someone maybe had a suggestion? Thanks in advance!

Outcomes