[pygtk] [ANNOUNCE] Gaphas 0.4.0

Arjan Molenaar gaphor at gmail.com
Fri May 29 20:14:12 WST 2009


Hi all,

I'm pleased to announce the next release of Gaphas, a diagram widget  
for GTK+/Python.

Gaphas is a MVC canvas that uses Cairo for rendering. One of the nicer  
things of this widget is that the user (model) is not bothered with  
bounding box calculations: this is all done through Cairo.


Features
--------

- Each item has it's own separate coordinate space (easy when items  
are rotated).
- Items on the canvas can be connected to each other. Connections are  
maintained by a linear constraint solver.
- Multiple views on one Canvas.
- What is drawn is determined by Painters. Multiple painters can be  
used and painters can be chained.
- User interaction is handled by Tools. Tools can be chained.
- Versatile undo/redo system


What's new
----------

- allow to define connectable parts of item's (ports feature)
- implemented default connection tool (thanks to ports feature)
- line segment tool implemented (code taken from gaphor)
- implemented Item.constraint method to simplify item's constraint
   creation
- The canvas (-view) is no longer tied to the (0, 0) position.  
Scrolling can
   be done quite fluidly with the new PanTool implementation.
- Canvas can be serialized (pickled)
- API changes
   - use positions instead of "x, y" pairs in all method calls

You can find it at the Python Cheese shop: http://pypi.python.org/pypi/gaphas

Homepage: http://gaphor.devjavu.com/wiki/Subprojects/Gaphas


Kind regard,

Arjan



More information about the pygtk mailing list