I have create a python-addin with two buttons as 'Start' and 'End'. In 'Start', I use 'SearchCursor' to get feature's geometry and "df.panToExtent(geo.extent)" to pan to the feature's extent, and 'refreshAcitveView', ‘’time.sleep(2) ‘ , then continue to next feature, but the map dataview doesn't move as I expected. If I use 'break' in curs loop, then it can pan to the first feature's extent. So is there any idea? If the 'Start' can realise the function I expected, then I want to know how to stop the "auto pan" in 'End' button, thank you.