Tried with the use of QMessageBox, and it is working fine. Initially I had thought this would work as I am calling the confirmDialog in frameEditied() (being first) and importRef() would be called on later..
Adding on, I tried to create the same prompt_dialog() in script editor, wrote 2 lines of code, each calling this method with different strings, and was given 2 confirm dialogs and hence the confusion. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/32011f2f-336a-47b1-b43f-75f9d9f274c5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.