Alan G Isaac venit, vidit, dixit 15.10.2009 02:26: > On 10/14/2009 6:22 AM, Michael J Gruber wrote: >> c = canvas.canvas([style.linewidth(1)]) > > So I had wondered about this and did > not understand the documentation. > > If one applies a line style to a canvas, I take > it that it becomes the default for all stroke operations > (by that canvas), including draw operations?
It seems so ;) It's not documented (online draw style is), but it works that way. I found no clean way to set an overall default line width which is why I did it that way. Assigning to style._defaultlinewidth (and ..._pt) is something you should not try at home. > PS Btw, it is great to be able to sum(mypaths,path()), > but might it be worth defining mypath+0 to be mypath > so we can just sum(mypaths)? Not sure this is a good > idea but thought I'd throw it out there. Sounds useful. I haven't looked into what that would take codewise. Michael ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ PyX-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-user
