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

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

Calling self.Destroy() from anything but a close event is a bad
idea. self.Close() is what you want. Or EndModal, if it's a dialog
you're showing with ShowModal.

regards, Anders

···

Fra: wxpython-users@googlegroups.com [mailto:wxpython-users@googlegroups.com] På vegne af Umar Yusuf: