Archive
how to install gtksourceview2 on windows
download and install all the following components:
gtk runtime installer (easier than take all the binaries and put them together)
http://sourceforge.net/projects/gtk-win/
gtksourceview2.4 binaries for win32
http://ftp.gnome.org/pub/gnome/binaries/win32/gtksourceview/2.4/
put them in the gtk runtime lib folder (or somewhere in your path)
pygtksourceview2 installer for win32
http://ftp.gnome.org/pub/gnome/binaries/win32/pygtksourceview/
libxml2, latest version binaries (really take the latest version)
ftp://xmlsoft.org/libxml2/win32/
put them in the gtk runtime lib folder (or somewhere in your path)
ok, now you can take the code in the previous post and execute it successfully.
up-to-date sample code for gtksourceview2 (from the svn)
#CREDITS #http://www.progbox.co.uk/wordpress/?p=300 #DEPENDS: gtksourceview2 and libxml2
import gtk import gtksourceview2
win = gtk.Window()
bufferS = gtksourceview2.Buffer() manager = gtksourceview2.LanguageManager() language = manager.get_language("xml") #langS.set_mime_types(["text/x-python"]) bufferS.set_language(language) bufferS.set_highlight_syntax(True) view = gtksourceview2.View(bufferS) view.set_show_line_numbers(True) win.resize(400,400) win.add(view)
win.show_all() gtk.main()
news from the SVN
this week’s edition of “news from the SVN” follows:
– XMLFinder: a graphical xpath evaluator (PyGTK)
– XMLFindTool and XMLTreeView: two classes which implement the Gino and XMLFinder cores; XMLFinder uses both the classes
– something doesn’t work in the CompressedFile class; under investigation
no binary distributions of these tools are provided, for now
notice: we have moved, once more. this blog is now available also on tec.nilleb.com
Filesystem Changes Monitor (FSCM) 0.1
The filesystem changes monitor (fscm) is a systray applet which allows you to inspect a set of filesystem entities for changes. when any change is detected, it changes its appearance.
it’s the ideal companion for a quality assurance engineer who wants to be notified upon the creation of new memory dumps/exceptions stacks/logs updates/etc.
It has hit the svn yesterday. It’s available for download from assembla.com. As usual, it is licensed under the GPL.
It uses icons found on the net (no license found for these icons), a systray icon code based on pywin32 (found on the net this too, no license as well), and pygtk. The watchdog code is mine, I haven’t found anything suitable.
Links:
Gino 0.2
Gino 0.2 has hit the SVN. (What’s Gino? http://www.assembla.com/wiki/show/etools/Gino)
It is delivered with a nice setup.py. With the help of py2exe, it is possible to make it a windows binary, easily portable.
The next steps? fix some(many) bugs, and prepare a Inno setup to deploy it.
If you want to try it, you can get the sources from assembla.com (http://svn2.assembla.com/svn/etools). (What are the etools? http://www.assembla.com/wiki/show/etools/Gino).
This project has been written with eclipse and pydev extensions. It isn’t clear which kind of license it will use, yet.