|
From: Ron A. <rr...@ro...> - 2008-01-09 17:46:06
|
Frédéric Mantegazza wrote:
> On mardi 08 janvier 2008, Ron Adam wrote:
>
>> Personally, I'd love to see that feature as methods of shapes and
>> frames.
>
> Well, your are using a OO language ;o) just create a new MyFrame object,
> from frame, and add the new methods...
>
> class MyFrame(frame):
> def relocate(self, parent):
> ...
>
Yes, that would work for frame, but to be complete, you would also need to
do the other 13 objects as My____().
So maybe a general use function would be better after all. <shrug>
def reframe(obj, new_frame):
...
Still thats only part of the solution for objects with direction attributes
such as volocities that also need to be adjusted.
Ron
|