nope, I have put md.Destroy() away and it didn't change something. I don't think that's the problem because ShowModal() is a blocking method, execution is stop until you press YES or NO (in my case with wx.YES_NO)