Could the arrow be set similarly to colour. I mean that just the type
can be specified as a number and the default settings for width and
length are used, 

o.properties["start_arrow"] = 17

or a triple as you suggested. This way we wouldn't have to add the named
enums. We would need a way to find the default width and length values
for a given type though. I am not sure where this information is.

Philip

----- Original Message -----
From: Hans Breuer <[email protected]>
Date: Friday, March 6, 2009 0:02 am
Subject: Re: Changing/Setting end_arrow from python Again
To: discussions about usage and development of dia <[email protected]>

> At 05.03.2009 11:34, Philip Cavaco wrote:
> > Hello
> > 
> > If this is not implemented, I am willing to add the 
> functionality. Could
> > someone give me some direction as to what files should be changed?
> > 
> The question which slows me down a bit is how to represent the 
> Arrow to be 
> set in Python. The most easy way to implement would be something 
> similar to 
> color setting:
>       o.properties["fill_colour"] = (0.5, 0.9, 0.5)
> e.g.
>       # type enum, width, length
>       o.properties["start_arrow"] = (17, .3, .5)
> 
> But maybe we should start to add named enums to make the pydia code 
> more 
> manageable. But that will take a bit longer ...
> 
>       Hans
> 
> -------- Hans "at" Breuer "dot" Org -----------
> Tell me what you need, and I'll tell you how to
> get along without it.                -- Dilbert
> _______________________________________________
> dia-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/dia-list
> FAQ at http://live.gnome.org/Dia/Faq
> Main page at http://live.gnome.org/Dia
> 
> 
_______________________________________________
dia-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/dia-list
FAQ at http://live.gnome.org/Dia/Faq
Main page at http://live.gnome.org/Dia

Reply via email to