Tag Archives: GTK

Weird issues

In those days I’ve been busy, so I didn’t continue my work on Notedown. I’m trying to figure out how to deal with a strange behavior of the toolkit.


First working GUI prototype

In the last two days I’ve written a working prototype of the main window that will compose NoteDown. It can be found in the git repository. Supported operations:

  • Text insertion (well, no big issue here, GTK takes care of that);
  • Bold/Italic/anything on selections (still no big issue, the Tutorial covers that);
  • Bold/Italic/anything on current word (zim-style)
  • Least astonishment behavior for Toggle-Buttons in the Toolbar

Playing with GTK

Unfortunately (well, also reasonably) the tutorial doesn’t give much complete documentation nor details about how everything works. However important information can just be obtained from the GTK C reference manual.

After playing with the Multiline Text Editor example, I started wondering how to save stuff and read formatting information. The documentation about the GtkTextIter component answered my first question, but I need to conceive a good way of retrieving the tags. Nothing I can’t handle.

Let’s start

NoteDown will be written in Python 3, since it fosters a rapid development, and I think it’s very neat. As for the graphical interface, I gave a glance at PyQt, Python TkInter and GTK3, and the latter seems the one which better suits my needs (at least, for the python bindings):┬ásimple, pythonic and and aesthetically good.

Despite I had some experience with GUI-based programming (using QT4 in C++) I’m pretty new with GTK, so I needed a tutorial, and I’ve found this one!