Is there a way to cancel suppression with python extension class?
I use Python Add-In Wizard (ArcGIS Desktop 10.2.2) to develop extension class. In this extension class I would like to overide behavior when deleting feature.
Here is what I want to do :
def onDeleteFeature(self) : res= pythonaddins.MessageBox("Do you want delete to delete these items ?", "Warning",4) if res == 'No': # Cancel suppression... how to? pass else: # Proceed suppression pass ##end def onDeleteFeature |
Do you have any idea?
Thanks,
Flavie
I try to raise an exception, but is it without effect. Suppression still occurs.
def onDeleteFeature(self) :
res= pythonaddins.MessageBox("Do you want delete to delete these items ?", "Warning",4)
if res == 'No':
# Cancel suppression... how to?
raise Exception()
else:
# Proceed suppression
pass
##end def onDeleteFeature
No one has any idea?
well nothing stops.... sys.exit()