[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Changing/Setting end_arrow from python Again
- From: Philip Cavaco <Philip Cavaco ki se>
- To: discussions about usage and development of dia <dia-list gnome org>
- Subject: Re: Changing/Setting end_arrow from python Again
- Date: Fri, 06 Mar 2009 09:50:51 +0100
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 <hans breuer org>
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 <dia-list gnome org>
> 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
> dia-list gnome org
> http://mail.gnome.org/mailman/listinfo/dia-list
> FAQ at http://live.gnome.org/Dia/Faq
> Main page at http://live.gnome.org/Dia
>
>
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]