[wxPython-users] RE: Printing the contents of a text control
Christopher Barker
Chris.Barker at noaa.gov
Wed Nov 28 09:39:57 PST 2007
Mike Driscoll wrote:
>> I've got a multiline, readonly wx.TextCtrl which has a bunch
>> of text inside of it. What is the easiest way to enable the
>> user to print this output text via a standard print dialog?
> Some people seem to think that the wx.HtmlSimplePrinting method is the
> easiest, as stated in the wiki:
>
> http://wiki.wxpython.org/Printing
yup. One of the key problems is that when you print text, you have to
typeset it one way or another (figure out where to put line breaks,
etc). The html engine does this for you -- it's fairly limited, but if
it does what you need, it's much easier than any of the alternatives.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list