Chris.

Tried the following but to no avail...  

        R = FC.Rectangle((5, 5),(15, 8), FillColor="Red")
        C = FC.Circle( (1, 3), 2, FillColor="Blue")
        self.GroupA = FC.Group((R,C))
        G = MovingGroup(self.GroupA)
        Canvas.AddObject(G)
        self.GroupA.Bind(FC.EVT_FC_LEFT_DOWN, self.FCObjectHit)

The error comes up with ... object list ‘G’ is not itterable. It may be a
syntax thing, but I don’t have the knowledge depth yet to see the problem.
Any help here would be greatly appreciated.

Thanks

David



David Poundall wrote:
> Something along the lines of the moving
> 
> elements demo but for groups?

You should be able to follow the code in that demo, and make a 
MovingGroup object much the same way. It may be as simple as:

class MovingGroup(FC.Group, MovingObjectMixin):
     pass


Which is making me think that I should just make that feature part of 
all DrawObjects. However, I'm working on a structure for User 
manipulation of object now, so I'm going to wait to see how it all fits in.

Though I wouldn't be surprised if there was something that was missing 
from the Group object to make that work.

Multiple inheritance and mix-in can be very cool!

-Chris




-- 
Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

[EMAIL PROTECTED]

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.17.1/1183 - Release Date: 13/12/2007
09:15
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.503 / Virus Database: 269.17.1/1183 - Release Date: 13/12/2007
09:15
 

_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to