I want to add an alert message to my python add-in(which will be like, when I click a button it will summon a warning message ). But I tried error message functions like : AddError, AddWarning and they just dont do anything.


As per the documentation, you have to use the pythonaddins.MessageBox().

pythonaddins.MessageBox("your error message", "Error", 0)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.