[pygtk] Large textview textbuffers files

Fredrik Corneliusson fredrik.corneliusson at gmail.com
Wed Feb 28 20:27:20 WST 2007


Hi,
I know gtk-textview has performance issues with long lines. It is not
the amount of data that makes it sluggish just 20k of chars without
newlines is enough. I think it has been reported as a bug for GTK but
it would require big changes to how text rendering works so no one has
been willing to fix it.
But maybe there is a workaround.

Regards,
Fredrik

On 2/28/07, Tony Nelson <tonynelson at georgeanelson.com> wrote:
> At 1:53 AM +0000 2/28/07, Funky Fred wrote:
> >Hello all,
> >   The first question would be if there was a way of searching the mailing
> >list archives - I couldn't find one.
>  ...
>
> You can use Google.  Search for:
>
>     search terms site:www.daa.com.au/pipermail/pygtk
>
>
> >But the real question I'm looking for is what the best way to go about
> >handling the display of large files in gtk.TextViews. ...
>  ...
>
> I don't know.  Does the text need word-wrapping?  If not, try turning it
> off with gtk.TextView.set_wrap_mode().  It's probably not the only problem.
> There may be another text widget more suitable for large amounts of text.
> --
> ____________________________________________________________________
> TonyN.:'                       <mailto:tonynelson at georgeanelson.com>
>       '                              <http://www.georgeanelson.com/>
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
>


More information about the pygtk mailing list