gitk-like graph visualisation in python

Tristan Wibberley tristan at wibberley.org
Sat Aug 20 15:12:35 CDT 2005


Matt Mackall wrote:
> On Sat, Aug 20, 2005 at 12:17:04PM +0100, Tristan Wibberley wrote:
> 
>>Hi
>>
>>I've painstakingly (I hate tcl) converted the gitk visualisation
>>algorithm to python using pygtk 2.7 and py cairo.
> 
> 
> I bet this is pretty, but I can't get it to run. What library versions
> are you using? Can we get a screenshot?

Screenshot is at http://maihem.org/hggui.png, sorry for the cluttered
font but I haven't looked how to select a different font yet :) No
colours yet either.

I compiled pycairo in the prescence of libcairo1-dev from ubuntu (don't
remember which version, but I don't expect any problems with later
versions), then I compiled pygtk 2.7.0 plus fix (2.7.1 should work) in
the prescence of gtk+ 2.7 dev libraries.

> The Cairo thing is interesting. It's obviously not portable to non-X
> Windows. I suppose we're eventually going to end up with multiple GUIs
> native to various systems, so we should just accept that and plan for
> it.


Cairo is or should be protable to both Windows and OSX. Firefox is
expected to use cairo for svg on windows eventually, apparently.

-- 
Tristan Wibberley



More information about the Mercurial mailing list