[wxpython-users] SEG FAULT
by Phillip Watts other posts by this author
May 8 2008 6:17AM messages near this date
Re: [wxpython-users] UNNECESSARY
|
Re: [wxpython-users] SEG FAULT
When I do THIS:
import wx
import wx.html
class doc:
def __init__(s,page=''):
s.help = wx.html.HtmlHelpController(style=wx.html.HF_DEFAULT_STYLE|
wx.html.HF_DIALOG|wx.html.HF_MODAL)
s.help.AddBook('doc/pipos.hpp')
if page: s.display(page)
def display(s,page):
s.help.Display(page)
As opposed to THIS:
s.help = wx.html.HtmlHelpController(style=wx.html.HF_DEFAULT_STYLE)
I get a SEG FAULT after I have closed the last frame.(on Kubuntu)
Even worse, on WinXp I have to press CTRL-C to close the app.
I have put in a print statement after app.MainLoop().
It never reaches the print.
I REALLY like help being modal. It saves confusion.
It also allows me to Raise() the window below it. Because
it is modal, the frame which calls help.display() waits and does the Raise().
Otherwise the user might have to manually raise it. Not good.
Anyone help with this? Thanks
PERHAPS the instance of HtmlHelpController() is never Destroy()ed,
causes the problem. ?? How would I code that?
_______________________________________________
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
|