Web lists-archives.com

Re: Custom TextBuffer




Hi,

On Sun, Aug 30, 2015 at 12:22:36AM -0400, Rena wrote:
> I want to use a TextView to display information as marked-up text.
> This information is generated on the fly and would span millions of
> lines that the user can page through. It seems like the idea would
> just be to subclass GtkTextBuffer to provide my own methods for "get
> text in a particular range", but I can't find any information about
> how. I tried providing my own get_text and get_slice methods but
> they're never called. I'm using Python btw.

See this tutorial for GtkTextView:
http://www.bravegnu.org/gtktext/

And see the introduction of GObject:
https://developer.gnome.org/gobject/stable/

For Python and PyGI, there is normally also some documentation.

Cheers,
Sébastien
_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@xxxxxxxxx
https://mail.gnome.org/mailman/listinfo/gtk-devel-list