On 26 Apr 2006 05:32:19 -0700, Iain King <[EMAIL PROTECTED]> wrote: > I have a wxpython program that displays TIF images. Sometimes it will > encounter a tag the tiff loader cant handle. Rather than silently > ignoring it, it pops up a window: > > Python Warning > unknown field with tag blah blah > > I don't want it to do this, but I can't work out how to turn it off. > Anyone know? >
This is actually an error generated by libtiff, which wxWidgets traps & raises. It is shown via the wxLog mechanism so you can supress it by wrapping your call in calls to wx.Log.EnableLogging. Note that this will suppress *all* warning and error messages that libtiff (or wx) might raise. > Iain > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list