ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> wxpython-users
wxpython-users
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved