Hi Ian,

On Wed, Jun 4, 2008 at 12:33 PM, Renton Ian <IRENTON@qinetiq.com> wrote:
> If the produced output is ok,
> you can just ignore the warning.

Unfortunately not - while I don't mind seeing the warnings myself, the
app is going to be built using py2exe, which seems to produce an "Error
has occurred" dialog box after termination if there are warnings as well
as if there are errors.  I'd prefer not to change py2exe's behaviour (if
that's possible) as I don't mind being warned about other things - it's
just this one that I know about and so don't want to be reminded of!
It is possible to remove the warning. In PyX, this is done by the use of message parser (see chap. 3.5 in the manual). For your case, a parser like

underfull_parser= text.texmessagepattern(re.compile(r"^ignoring overfull/underfull box warning:\nUnderfull \hbox (badness 10000) detected at line .*$",.re.MULTILINE))

should work (I didn't test it, may be / probably you have to correct the regular expression)
To activate the parser, you have to add it to the texrunner you are using. For the default texrunner,

text.set(texmessagesend=[underfull_parser])

should do it.

HTH,

Axel