Re: Python Sript Related Questions
- From: "Martin Hawlisch" <Martin Hawlisch gmx de>
- To: Athanasios Anastasiou <thanos atmail com>
- Cc: dia-list gnome org
- Subject: Re: Python Sript Related Questions
- Date: Wed, 22 Mar 2006 18:39:21 +0100 (MET)
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.
--
Cheers, Martin.
http://www.hawlisch.de
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]