Re: wxNotebook and DeleteAllPages()
Robin Dunn <[email protected]> Mon, 16 Jul 2018 16:35:24 -0700 (PDT)
| Newsgroups | gmane.comp.python.wxpython.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sunday, July 8, 2018 at 10:16:18 AM UTC-7, ABC wrote: > > Hello Robin, > > Has this been fixed yet? > If I do "notebook.DeleteAllPages()", and afterward do "notebook.AddPage" > under 32-bit Windows 7, Python 3.6.5, wxPython 4.0.3, I get: > > 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(): > > No error if I use your workaround, and delete one page at a time. > It looks like I may have combined this issue and a similar one with the AUI notebooks in my mind, so only one of them was addressed by the fix I made in wxWidgets. I'll take a look at this one again. https://github.com/wxWidgets/Phoenix/issues/928 -- Robin -- 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.