possible causes of dialog not closing

Hi All,

What are the possible causes of a dialog not closing even after self.Close() is called or by clicking on the close button of the dialog.

I can see that OnDialog1Close event is triggered but the dialog is not closing.

Thanks
Thomas

Thomas wrote:

Hi All,

What are the possible causes of a dialog not closing even after self.Close() is called or by clicking on the close button of the dialog.

I can see that OnDialog1Close event is triggered but the dialog is not closing.

If you showed it with ShowModal then you need to call EndModal to close it. Since dialogs have slightly different semantics than frames they do not hide or destroy themselves when Close is called, and they will continue to exist until it does get destroyed.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!