Re: suppression of new error

Karsten Hilbert <[email protected]>
Newsgroups gmane.comp.python.wxpython
Message-ID <[email protected]>
On Wed, Oct 14, 2020 at 03:46:12PM +0000, wxp-users wrote:

> We are seeing a new class of error in our code with wx4.1.0:
>
> > /tmp/pip-build-gvydcwjt/wxpython/ext/wxWidgets/src/common/sizer.cpp(2114)
> > in DoInsert(): Vertical alignment flags are ignored with wxEXPAND
>
> > /tmp/pip-build-gvydcwjt/wxpython/ext/wxWidgets/src/common/sizer.cpp(2077)
> > in DoInsert(): Vertical alignment flags are ignored in vertical sizers
>
> These are clearly problems in our code due to sloppy (or poorly understood, or both) use of flags in Sizer.Add() and we will need to track them down. The problem we face is that they throw exceptions, which is not desirable in the hands of users. Is there a way that we can suppress this or at least downgrade this to a warning — other than for the developers?

If those are, indeed, Exceptions you might add a (top-pish
level) exception handler and just log them ?

This sort of thing might help, perhaps:

	(wx.App).SetAssertMode(wx.APP_ASSERT_EXCEPTION | wx.APP_ASSERT_LOG)

Karsten
--
GPG  40BE 5B0E C98E 1713 AFA6  5BC0 3BEA AC80 7D4F C89B

-- 
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/20201014163239.GD26913%40hermes.hilbert.loc.
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.