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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]