June 10th, 2007
I now wrote down a small tutorial for PyGTK applications with gettext support. You can find it here: Internationalized PyGTK Applications.
The sourcecode for a small example project is here: pygtki18nexample.tar.gz
I hope it helps :-)
Tagged as: i18n, gtk, python |
One Comment »
June 8th, 2007
I googled for pygtk internationalization and found out that gettext integration is straightforward. In fact it required less than 30 lines changes in the code and now it would be possible to translate gPyreTest.
Here a screen of gPyreTest in German language (the regexp syntax error translation sounds strange, maybe someone wants to contribute patches ^^)

Tagged as: i18n, gtk, python |
No Comments »
June 7th, 2007
On the German python forum I found a thread where someone mentioned kodos which reminded me about one of my old projects which was pretty much the same, just for GTK. I now restored the sourcecode and cleaned it up a bit (it originally contained tabs and various constructs I could have avoided and a hardcoded GUI). I also added escape / unescape / export / import features.
So the result looks like this:

I added it to my projects section now: gPyreTest
And now have fun testing your python regular expressions :D
Tagged as: gtk, python, announcement |
No Comments »
May 30th, 2007
I found in Pete Savage’s blog and entry about using GtkSourceView in pygtk. The new version of GtkSourceView absolutely rocks, the old one does not because the ruby highlighter and more complex stuff simply does not work because the library is somewhat limited.
As a proof of concept I tried to integrate pygments into a pygtk window and it worked :-) Of course it doesn’t allow realtime updating thus it’s impossible to use it as editor component (at least for now) but it makes a good source view.
You can find the sources here: gtkpygments.py
Tagged as: gtk, pygments, python |
3 Comments »