Re: Custom TextBuffer
- Date: Sun, 30 Aug 2015 11:46:02 +0200
- From: Sébastien Wilmet <swilmet@xxxxxxxxx>
- Subject: Re: Custom TextBuffer
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:
And see the introduction of GObject:
For Python and PyGI, there is normally also some documentation.
gtk-devel-list mailing list