[Tutor] word wrapping a string
Magnus Lycka
magnus@thinkware.se
Tue Nov 12 10:26:30 2002
At 05:10 2002-11-12 -0800, Lance wrote:
>Thanks all for your comments. I received this info from another member:
>
>Take a look at the textwrap.py module, which lives in Python's CVS. It will
>be part of Python 2.3. It won't handle your requirements for a single big
>string, but if you have the two parts separated you should be able to swing
>it.
>
>http://cvs.sf.net/cgi-bin/viewcvs.cgi/python/python/dist/src/Lib/textwrap.py
Great!
It shouldn't be a big deal to make a MultiColumn class that
use a TextWrapper for each column.
--
Magnus Lycka, Thinkware AB
Alvans vag 99, SE-907 50 UMEA, SWEDEN
phone: int+46 70 582 80 65, fax: int+46 70 612 80 65
http://www.thinkware.se/ mailto:magnus@thinkware.se