Frame Freezes on Mac OS when Destroy() method is called

Hello,

Am writing a program based on wxPython classic on windows and everything works fine.

But if I run same code on Mac OS, upon click the cancel button which calls Destroy() method, it freezes the frame.

How do I resolve this big on Mac OS? It doesn’t happen on windows. Find attached the code.

Thanks for you time in advance.

Minimal_Code.zip (35.2 KB)

Here is a video to show what I esplained: https://youtu.be/LW4Yo78h4mQ

···

On Thursday, 9 February 2017 07:06:57 UTC-8, Umar Yusuf wrote:

Hello,

Am writing a program based on wxPython classic on windows and everything works fine.

But if I run same code on Mac OS, upon click the cancel button which calls Destroy() method, it freezes the frame.

How do I resolve this big on Mac OS? It doesn’t happen on windows. Find attached the code.

Thanks for you time in advance.