Re: Python Sript Related Questions
- From: Athanasios Anastasiou <thanos atmail com>
- To: Martin Hawlisch <Martin Hawlisch gmx de>
- Cc: dia-list gnome org
- Subject: Re: Python Sript Related Questions
- Date: Wed, 22 Mar 2006 17:48:03 +0000
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:
*Black=(0.0,0.0,0.0);
*(Object.properties["fill_colour"].value.red,Object.properties["fill_colour"].value.green,Object.properties["fill_colour"].value.blue)==Black
To test for the black color....Why can't i do
Object.properties["fill_colour"]==(0.0,0.0,0.0)
Or
Object.properties["fill_colour"].value==(0.0,0.0,0.0) ???
All the best
thanOS
Martin Hawlisch wrote:
Hi!
Von: Athanasios Anastasiou <thanos atmail com>
Betreff: Python Sript Related Questions
#So far so good, now let me change a color
CurObj.properties["fill_colour"].value.red=0.0
And here is where i get the
TypeError: 'DiaColor' object has only read-only attributes (assign to
.red)
Some time ago that worked for me:
CurObj.properties["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]