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.
> 
> [snip]
> 
> > 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?
> 
> http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq04.015.htp
> 

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.

Ionutz

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to