[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Change fill color from Python
- From: Magnus Henoch <mange freemail hu>
- To: Dia-list gnome org
- Cc:
- Subject: Change fill color from Python
- Date: Sun, 14 Nov 2004 17:31:55 +0100
I want to change the fill color of an object from a Python function.
I try the following in the Python console, where obj is an object:
color = dia.DiaColor(1.0, 0.0, 0.0)
TypeError: cannot create 'DiaColor' instances
color = obj.properties["fill_colour"].value # works
obj.properties["fill_colour"].value = color
TypeError: 'DiaProperty' object has only read-only attributes (assign to .value)
Are these things (creating DiaColor objects, and changing properties)
not implemented yet, or am I just missing something?
Magnus
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Mail converted by Mofo Magic and the Flying D
All trademarks and copyrights are the property of
their respective owners.
Related Sites:
eBay Registration |
Bakie Directory |
Directory Owners Forum |
eLoan |
Cash Advance |
OPEN |
OPEN |
OPEN |
FreeCreditReport.com |
Powered by: vBulletin Version 3.5.3,
Copyright ©2000 - 2003, Jelsoft Enterprises Limited.
GuideSMACK