[wxpython-mac] Where is this "Debug" message coming from?
John Jackson
jjackson at pobox.com
Fri May 16 14:04:51 PDT 2008
It's in
bool wxColourBase::FromString(const wxChar *str)
in src/common/colourcmn.cpp in the wx source. (Always handy to have
the source around to find these things.)
It's hitting
wxLogDebug(wxT("wxColour::Set - couldn't set to colour string '%
s'"), str);
return false;
Somewhere you are setting a color name of 'None' and trying to get
the color from that string.
On May 16, 2008, at 12:32 PM, Ian York wrote:
> MacOS10.5.2, Intel Mac
> Python 2.5.1
> wxPython 2.8.4.0
>
> I have an intermittent bug in my program. The action fails, but
> there is no Python error or trackback message; instead, this
> message is printed out:
> [Debug] 15:26:17: wxColour::Set - couldn't set to colour string 'None'
>
> (Or 'True' or 'False')
>
> It looks as if the debug is swallowing the trackback I would like
> to use to find where my problem is. (I've tried all the wx-colour
> type actions that should be getting called and they all seem to be
> getting valid input as far as I can see.)
>
> It's not coming from my program, and I can't find the source of it,
> by e.g. grepping the wxpython library.
> Any ideas what's sending the message, and how I can override it to
> get useful information?
>
> Thanks,
>
> Ian
>
> --
> Ian York (iayork at iayork.com) <http://www.iayork.com/>
> "-but as he was a York, I am rather inclined to suppose him a
> very respectable Man." -Jane Austen, The History of England
>
> _______________________________________________
> wxpython-mac mailing list
> wxpython-mac at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wxpython-mac
>
More information about the wxpython-mac
mailing list