David Poundall wrote:
> I have just stumbled upon SVG (Scalable Vector Graphics)

yup -- it's a pretty good standard.

>    1. A python SVG to Floatcanvas converter

Well, the trick it that SVG is a pretty complex spec -- it supports a 
LOT of stuff that FloatCanvas does not, and while most of it could be 
supported with GraphicsContext, it would be a lot of work.

>    2. Good property support for each object on the canvas

That is something needed anyway.

> We could leverage the support of open source SVG front ends like 
> Inkscape (http://www.inkscape.org/) for drawing with, and use 
> Floatcanvas as a python display tool.

The problem with that it that FloatCanvas would have to support 
everything that InkScape does -- very ambitious!

Someone (I think Chris Mellon) on the wxPython-users list wrote a SVG 
renderer a while back -- it would be worth looking into. Also the pyGEF 
project:

http://sourceforge.net/projects/pygef

But I don't see any activity since August on that one.

-Chris

> I had nearly finished my modest Floatcanvas GUI and I was just pondering 
> adding component scaling

Numpy should make that pretty easy -- FloatCanvas objects are all 
defined in floating point just for that reason.

> when I figured that there had to be another 
> way.  As a front end tool ‘inkscape’ looks to be that way. 

InkScape is a great tool -- if you want a GUI vector graphics editor, 
it's a great way to go.

Hmm -- I wonder how tied to GTK it is, and how hard it would be to wrap 
its code so it could be driven by Python...Does it have any 
scriptability now?

> Have you had any further thoughts about adding property bags to your 
> core code?

My most rect though was that we don't need to add property bags in the 
Objects themselves, but rather a way to get and set such "bags" -- 
probably just a dict would do.

> Strikes me that if you could do that

I'd like to , but I'm not sure when I'll have the time.

> and I work on the SVG  to Floatcanvas reader

I'm all for that, but making something that will read all (Or most) SVG 
looks huge to me, and may require a shift of FloatCanvas to 
GraphicsContext anyway (and a look at Chris Mellon's work with SVG, and 
Retief's work with pyGEF )

> What say you ?

I'll be glad to keep answering questions, and in six months or so, I MAY 
have a project that will really require major FloatCanvas work, but I 
can't do a whole lot at this point.

-Chris


-- 
Christopher Barker, Ph.D.
Oceanographer

NOAA/OR&R/HAZMAT         (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to