Re: Python Sript Related Questions

Hello Martin

AAAAAAARGH!!!! That was the only thing i did not try :-/. Thanks for your response anyway.

On the same subject, how do you go about testing for a color? I mean i had to do:


To test for the black color....Why can't i do["fill_colour"]==(0.0,0.0,0.0)
Or["fill_colour"].value==(0.0,0.0,0.0) ???

All the best

Martin Hawlisch wrote:

Von: Athanasios Anastasiou <thanos atmail com>
Betreff: Python Sript Related Questions

#So far so good, now let me change a color["fill_colour"]

And here is where i get the
TypeError: 'DiaColor' object has only read-only attributes (assign to

Some time ago that worked for me:["fill_colour"] = (0.9,0.9,1.0)

Given are the components for (red, green, blue) in the range from 0 to 1

Hope that helps.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]