[pygtk] SVG Drawing with PyGTK

Gian Mario Tagliaretti gianmt at gnome.org
Tue Dec 30 20:39:39 WST 2008


On Tue, Dec 30, 2008 at 8:57 AM, Charalampos Emmanouilidis
<c.emmanouilidis a yahoo.de> wrote:
> Hi there,

Hi

> I need some help here, please.

sure :)

> I'm trying to find a way to draw svg shapes and text with PyGTK. The
> elements I want to draw should be resizable => i need some kind of
> resize/drag/move grips arround my elements.

That can be done using a canvas, placing the items and text as you
wish and then rendering the SVG on a cairo surface.

> Now the questions:
>
> Are there any GTK widgets for this purpose (drawing primitives) available.
> Maybe a canvas for SVG elements?

goocanvas and its python binding pygoocanvas [1]

> How can I move resize etc. those elements?

using the canvas facilities

> Do you now any similar application written PyGTK or a small sample
> application for an painting/drawing program written in PyGTK?

[py]goocanvas comes with a lot of examples.

> Thanks in advance

[1] http://live.gnome.org/GooCanvas

cheers
-- 
Gian Mario Tagliaretti
GNOME Foundation member
gianmt a gnome.org


More information about the pygtk mailing list