[pygtk] text truncation method
borco at go.ro
Tue Jan 20 18:47:07 WST 2004
On Mon, 2004-01-12 at 23:15, Christian Robottom Reis wrote:
> On Tue, Jan 06, 2004 at 04:02:40PM +0200, Ionutz Borcoman wrote:
> > I need to display some text in a given rectangle. If the text is too
> > long, the text should be trunctated and '...' appended to what is displayed.
> > Is there a predefined method/function that does this ? Is there another
> > simpler/faster way to set the pango text ?
> Do you mean something as described in FAQ 4.15?
Sorry for the late reply, but I've missed your reply.
The FAQ is not what I want as it describes how to get the length of the
full text, not how to truncate the text. I used that FAQ to obtain the
solution I've posted.
More information about the pygtk