unable to suppress warning messages

Hi, all. I am loading some tiff files as wxImages and have a number of
files that throw warnings every time I open them. I get at least one
message box that says "unknown field with tag xxxxxx ignored" which
waits for the user to hit ok, and then works fine.

What I would like is to be able to keep the warning from popping up at
all. I have tried using wxLog_SetActiveTarget(mylog()) where mylog is a
class that derives from wxPyLog and whose DoLogString method consists of
'pass'

Am I doing something wrong? Is this warning box hardcoded somewhere?

Thanks for your help,

Mark Roach

Roach, Mark R. wrote:

Hi, all. I am loading some tiff files as wxImages and have a number of
files that throw warnings every time I open them. I get at least one
message box that says "unknown field with tag xxxxxx ignored" which
waits for the user to hit ok, and then works fine.

What I would like is to be able to keep the warning from popping up at
all. I have tried using wxLog_SetActiveTarget(mylog()) where mylog is a
class that derives from wxPyLog and whose DoLogString method consists of
'pass'

Am I doing something wrong? Is this warning box hardcoded somewhere?

It is. It's burried down in the tiff library, but there is support in the tiff library for plugging in a new warning handler. Please enter a feature request to this effect.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!