Ben,
···
-----Original Message-----
From: Ben Kaplan [mailto:bskaplan14@yahoo.com]
Sent: Friday, December 07, 2007 2:29 PM
To: wxPython-users@lists.wxwidgets.org
Subject: Destroying HtmlHelpControllerCurrently, when I create an HtmlHelpController (as a dialog.
It won't work correctly as a frame on Ubuntu), I can't get it
to destroy correctly. If the user clicks the "x" in the top
corner, rather than the "close" button on the bottom, it
won't get destroyed. I would use Bind for wx.EVT_CLOSE, but
the dialog isn't created until I call Display, at which point
it is too late to bind anything(the dialog is modal).Is there any way to get the HelpController to destroy itself
after it is closed?________________________________
Since it's a dialog object, you should be able to call its Destroy()
method. Maybe you need to put the method in a CallAfter() call though to
make sure that it gets destroyed when it's done processing.
Mike