Re: Force destroying dialogs

"'Pyfips' via wxPython-users" <[email protected]>
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
Hello again, 
I have found out that this problem might not be related to windows handles: 
The first error that happens is always the following:

self.Layout()
wx._core.wxAssertionError: C++ assertion "m_hDWP" failed at ..\..\src\msw\window.cpp(5240) in wxWindow::EndRepositioningChildren(): Shouldn't be called


Whereas "self" in this case relates to a wx.GridBagSizer.

However, this is not reproducable.


As you can see, the error happens when calling self.Layout(). This is called at the very end of a method that previously adds some children to the sizer and is called inside MyDialog.Show(False) (before calling super(MyDialog, self).Show(False)).


What I do not understand: The error occurs when EndRepositioningChildren() is called without calling BeginRepositioningChildren() before. But Layout() should handle this properly anyway(?). There is no Mainloop (events are fired during the test) and there is no explicit call of EVT_SIZE, neither in the sizer nor in the dialog.


Is there something I am missing?

-- 
You received this message because you are subscribed to the Google Groups "wxPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wxpython-users/1d1a44b1-157b-4506-8dc2-ee605d1f32dd%40googlegroups.com.
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.