On Jul 12, 2007, at 10:15 AM, Simen Haugen wrote:
> Sounds good, but is it possible to remove the properties that doesn't
> make sense? Perhaps throw an exception for properties that doesn't
> make
> sense, or but it in a list of blocked properties and override
> __getattribute__ to disallow these based on shape type?
I suppose its possible, but I don't think it's worth the disruption
in order to tell people that they are doing something really stupid.
> I think setting the length of a line should be possible and change
> only
> endpoint (x2/y2)
Do you mean the rightmost point? You can draw a line using
obj.drawLine(100, 100, 50, 50), which will draw a line from (100,100)
to (50, 50). You can draw the exact same line using obj.drawLine(50,
50, 100, 100). Now you change the Length property: in the first case,
the point at (50,50) changes, and in the second case, the point at
(100,100) changes. I don't think that that's a very good solution.
Line segments are specified using 2 points, or using one point, an
angle and a length. Currently we only support the former.
-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]