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?
Iain 5 2074
I had a similar but simple problem (the file was missing) and had to check
by hand before calling wxPython.
Can you check the tag by hand before calling wxPython ?
Philippe
Iain King 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?
Iain
Philippe Martin wrote: I had a similar but simple problem (the file was missing) and had to check by hand before calling wxPython.
Can you check the tag by hand before calling wxPython ?
Philippe
Hi,
also I have the same problem with g3/g4 images. My solution was convert
that image *before* to .png before... Very bad hack, but work.
I think that is an internal wxWidgets message (warning), passed to the
wxPython subsystem.
Have you tried to wrote to the wxpython ml?
Michele
Michele Petrazzo wrote: Philippe Martin wrote: I had a similar but simple problem (the file was missing) and had to check by hand before calling wxPython.
Can you check the tag by hand before calling wxPython ?
Philippe
Hi, also I have the same problem with g3/g4 images. My solution was convert that image *before* to .png before... Very bad hack, but work. I think that is an internal wxWidgets message (warning), passed to the wxPython subsystem.
This is actually exactly what I did. (well, I converted to jpg, because
they're going to end up as jpg anyway).
bah
Iain
On 26 Apr 2006 05:32:19 -0700, Iain King <ia******@gmail.com> 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
Hi,
This is an answer I got from the wxPython NG:
"""
If it is a wxLog message (I think it is) then you can temporarily
disable log messages by creating an instance of wx.LogNull. *Or you can
do something like set the log target to some other object than the
default wx.LogGui, or set the log level to a higher level so those
messages are not logged.
"""
Regards,
Philippe
Iain King 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?
Iain This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: SeeBelow |
last post by:
Do many people think that wxPython should replace Tkinter? Is this
likely to happen?
I ask because I have just started learning Tkinter, and I wonder if I
should abandon it in favor of...
|
by: BJörn Lindqvist |
last post by:
See: http://www.wxpython.org/quotes.php. especially:
"wxPython is the best and most mature cross-platform GUI toolkit,
given a number of constraints. The only reason wxPython isn't the
standard...
|
by: timothy.williams |
last post by:
I'm trying to install wxPython 2.5.3.1 using Python 2.3.2 on a Fedora 2
machine.
I have python in a non-standard place, but I'm using --prefix with the
configure script to point to where I have...
|
by: James Stroud |
last post by:
Hello All,
I will soon have an excuse to install a new operating system on my computer. I
would like to know exactly what operating system I should have so that I can
get wxPython going....
|
by: TPJ |
last post by:
GUI's etc: PyGtk on Windows
"(...) So if someone develops mainly for X and just wants to make sure
that it is not impossible to run on Windows, you can use PyGTK. (...)",
July 2nd, 1999
pyGTK...
|
by: Robin Dunn |
last post by:
Announcing
----------
The 2.6.3.0 release of wxPython is now available for download at
http://wxpython.org/download.php. There have been many enhancements
and fixes implemented in this...
|
by: ianaré |
last post by:
I have a wxPython application that i can run no problem from source,
now i want to freeze it for distribution. I tried the freeze.py script
and got the following output:
<snip>
freezing Frame1...
|
by: stef |
last post by:
hello,
I'm trying to move from Delphi to Python
(move from MatLab to Python already succeeded, also thanks to this
discussion group).
From the discussions in this list about "the best" GUI for...
|
by: YarrOfDoom |
last post by:
I just installed wxPython on my computer (Windows "fails-a-lot" Vista, 32bit, Python 2.6, PIL and pyOpenGL installed).
However, when I try to import the wxPython module, I get this:
>>> import...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |