wxNotebook and DeleteAllPages()

PyMapper Developer <[email protected]>
Newsgroups gmane.comp.python.wxpython.devel
Message-ID <[email protected]>
Hello all, 
    I'm updating older code that was running on python 2.7 and wxpython 
2.8.12 to now run on python 3.6 and wxPhoenix.  I have run into the 
following error messages:

<class 'wx._core.PaintEvent'> returned a result with an error set

wx._core.wxAssertionError: C++ assertion "(int)m_pages.Count() == 
(int)::SendMessageW((((HWND)GetHWND())), (0x1300 + 4), 0, 0L)" failed at 
..\..\src\msw\notebook.cpp(343) in wxNotebook::GetPageCount():

This occurs when I have an active wxNotebook (with any number of pages) 
where I try to create a new page, after having called the DeleteAllPages() 
method.  Did the behavior of wxNotebook change somewhere between 2.8.12 and 
4.0, or is this a bug in the wxNotebook?

-- 
You received this message because you are subscribed to the Google Groups "wxPython-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.