Syntax Highlighting Gtk.Entry on Python

223 Views Asked by At

I want to highlight the text of a Gtk.Entry, like this:

Example

The first solution that came to me was foreign drawing, but I would have to manage everything myself. Other thought I had was to extend Gtk.Entry and override just the drawing of the text, but I don't think that's possible in Python.

How can I do that and take advantage of the work Gtk already does managing focus, drawing, animation, scrolling, cursor, etc.?

0

There are 0 best solutions below