Re: [wxpython-users] SEG FAULT
by Andrea Gavana other posts by this author
May 8 2008 8:08AM messages near this date
Re: [wxpython-users] SEG FAULT
|
[wxpython-users] Column widths in ListCtrl
Hi Phillip,
On Thu, May 8, 2008 at 3:21 PM, Phillip Watts wrote:
> > Uhm, can you see what happens if you call:
> > print wx.GetTopLevelWindows()
>
> You are right:
> def dologout(s,event):
> s.f.Close(True)
> s.f.Destroy()
> toplevs = wx.GetTopLevelWindows()
> print toplevs
> <genret.GR1Frame; proxy of <Swig Object of type 'wxFrame *' at 0x852b108> >,
> <wx.html.HtmlHelpDialog; proxy of <Swig Object of type 'wxHtmlHelpDialog *'
> at 0x8776740> >]
>
> But no combination of del, Close() or Destroy makes that HelpDialog go away.
>
> > Also, have
> > you tried giving a parent window to HtmlHelpController to see if the
> > problem disappears? I have never used HTMLHelpController but the fact
> > that you have to hit Ctrl+C on Windows means that some TLWs are not
> > destroyed when the app exits and one way to insure that, IIUC, is to
> > give a parent to those HtmlHelpController.
> >
> I don't think I understand how to do this. What frame? Display() is called
> from many frames. The constructor stands alone.
> wxHtmlHelpController() has no argument for parent.
Really? This is what the wxWidgets manual says:
"""
wxHtmlHelpController::wxHtmlHelpController
wxHtmlHelpController(int style = wxHF_DEFAULT_STYLE, wxWindow*
parentWindow = NULL)
Constructor.
"""
So, there is a parentWindow in the constructor, and I imagine this
should be the parent I was mentioning before... Anyway, I told you I
am no expert with HtmlHelpController, so I am probably misunderstaing
something. Sorry if this doesn't help a lot.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
_______________________________________________
wxpython-users mailing list
wxpython-users@[...].org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users
Thread:
Phillip Watts
Robin Dunn
Phillip Watts
Andrea Gavana
Phillip Watts
Andrea Gavana
|