[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Good code for text wrapping?
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Good code for text wrapping?
- From: "Douglas Bagnall" <douglas@xxxxxxxxxxxxxxx>
- Date: Tue, 16 Sep 2008 14:21:12 +1200
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Mon, 15 Sep 2008 22:21:17 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=Iav888Y/vjv6j4bfyTHPLOnU+27qnDRwkOFfnbGOnT4=; b=OvJ8f28Emq5yikZc0dQ1QFvisYNqreZPpQrvTGA8E1W4XcnSHoPhcnHFh65O081nXt mj/6t9oShSuwjST5NQyKwpQvBBF2LeSlKWCOYi3QSEoa6FbPa+5HrqjbFTdyRwtv+0eI A0drTPNaZfhwMcNFKe8D8GA07hkyo36GukQsI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=fDL4lJyCWANBBHJ2qYz49hNnVvvcUNjXaTzb38Vq+IAqv1N7tw7Gc51wWV/U7IWx0U iWMx/rzlrbSDw0S284qZWwUclTUYOTQ1rrC0jZsWZkEYTEYpLY4lbeDrHkCb775vpCOi AJqO+l5dXGO8LgqEXr1Fy/SV7bL6o60iTQFi0=
- In-reply-to: <64ddb72c0809151911y4fd92425l6207fce9be57e43f@xxxxxxxxxxxxxx>
- References: <64ddb72c0809151911y4fd92425l6207fce9be57e43f@xxxxxxxxxxxxxx>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
> The cookbook has this entry, but it doesn't work with new lines.
> http://www.pygame.org/wiki/TextWrapping
>
> Anyone have any code like this that supports new lines?
Batteries are included:
http://docs.python.org/lib/module-textwrap.html
does that help?
Douglas