During the execution of my programme this function is called several times, but it only works the first time that I execute it. The second time that the function is called the GUI is blocked at the ShowModal call and the execution of the script stops, but no errors are shown anywhere.
Here is the code:
def MessageDialog(a, message, title , options):
dlgQuestion = wx.MessageDialog(None, message, title, options)
response = dlgQuestion.ShowModal() == wx.ID_YES
return response
wxPython version 3.0.3
python version 3.4.4
0.S. is Windows 7