[pygtk] How to retrieve all the content in the TextBuffer?

Frédéric frederic.mantegazza at gbiloba.org
Mon Jan 5 18:06:02 WST 2009


On lundi 05 janvier 2009, Miguel Ángel García wrote:

> tb = gtk.TextBuffer()
> tb.get_text(*tb.get_bounds())
>
> with "get_bounds" you will get a vector of size 2. The '*' asterisk
> transforms the vector into the parameters of 'get_text', so you are
> saying: "give me the text from first character till last one".

Yes, but Ziwen was looking for a way to retreive all contents (pixbufs and 
so), not only the text...

-- 
    Frédéric

    http://www.gbiloba.org


More information about the pygtk mailing list