From: Andre W. <wo...@us...> - 2004-01-13 06:56:21
|
Hi, On 12.01.04, Magnus Lie Hetland wrote: > > Try deco.earrow.normal(attrs=deco.stroked.clear) > > Just checking: Here I could just use > > deco.earrow.normal(deco.stroked.clear) > > right? (Since I'm just using one argument...) Well, right. This happens when attrs is the first argument and you have only one attribute. Usually, we allow for attrs=color.rgb.red instead enforcing the usage of attrs=[color.rgb.red], e.g. creating a list out of a single attribute automatically. May be, this is more confusing than it helps. > On another note -- I can't get the call above to work. I get the > following error: > > TypeError: instance <pyx.attr.clearclass instance at 0x298800> not > allowed I guess there are some type checks for the argument list being performed before the merging of the attributes took place. Those errors are likely to be in the code all around ... ;-( André -- by _ _ _ Dr. André Wobst / \ \ / ) wo...@us..., http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript figures with Python & TeX (_/ \_)_/\_/ visit http://pyx.sourceforge.net/ |