Re: GTK error messages

Michael Eager <[email protected]> Thu, 7 Jan 2021 07:52:21 -0800
Newsgroups gmane.comp.lib.wxwindows.general,gmane.comp.python.wxpython
Message-ID <[email protected]>
On 1/5/21 1:13 PM, Vadim Zeitlin wrote:
> On Tue, 05 Jan 2021 09:20:30 +0100 Gunter Königsmann wrote:
> 
> GK> If that would be a possible feature of wxLogger? The option to redirect
> GK> gtk messages to a log panel, along with the wxWidgets one?
> 
>   I'm not sure if it really makes sense for wxLog, which is about
> (re)directing the messages generated by wx programs somewhere, not about
> intercepting the messages from somewhere else. This functionality also
> doesn't have any portable equivalent, AFAIK. So I think that the best we
> could do would be to provide some GTK-specific function for such
> redirection, but this doesn't have much advantage compared to just doing
> the same thing in the application code.


It may not make sense for wxLog, but if GTK generates spurious messages 
with wx, putting some kind of GTK message manager in the wx library 
seems like a good idea.

In a C/C++ program, it may be easy to just put the code in the 
application.  With wxPython, it's more awkward.  If one takes my 
approach, using a separate library, it needs to be built, distributed, 
and installed along with the Python code.  It would be better to be in 
wx and wrapped by wxPython.

-- 
Michael Eager

-- 
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to [email protected]
or visit http://groups.google.com/group/wx-users
--- 
You received this message because you are subscribed to the Google Groups "wx-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/wx-users/3f2f4c6a-85a7-2dea-ac05-7d760fee5771%40eagercon.com.