Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using the quickly ubuntu-application template (i.e. python and GTK3), what solutions exist to display a text editor in which I can highlight some parts of the text and add annotations/extra visuals at some places?

The idea is to have a component where the user can type in text and as he does so there are some annotations schown (similar to syntax highlighting).

The editor does not have to be a rich text editor or anything like an office application, just a text editor would be fine.

share|improve this question
up vote 2 down vote accepted

The two most-used text widgets are Gnome's native text widget, and Scintilla. Each do rich text but are often used for plain text. I'm sure they both handle highlighting, can be programmed to include annotation and comment text, and are able to incorporate graphic objects.

GTKText is the text widget in PyGTK; see et al.

Scintilla is used widely in GTK and Windows, at least; here it is: in its own website.

Exactly how this is used with Quickly, I'm not certain -- but if are writing GUI code for a Quickly app, these links will at least give you an idea of what's out there.

Best of luck!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.