constraints in wxOGL

I'm sure I tried it before an d didn't work but now it's ok... at least that part.
The problem is that I can't get to draw a CompositeShape. Can someone post an example of CompositeShape?

David Asensio Ortega

----Original Message Follows----

···

From: "John Li" <johnli@ahlt.net>
Reply-To: wxPython-users@lists.wxwindows.org
To: <wxPython-users@lists.wxwindows.org>
Subject: RE: [wxPython-users] constraints in wxOGL
Date: Wed, 3 Mar 2004 10:33:11 -0500

> > > I'm working with wxOGL. I import it as "from wx import ogl".
> > > I want to make
> > > an ogl.CompositeShape. I add the cilds but when I want to add
the
> > > constraints I can't use any type because I get an error like:
> > > "'module'
> > > object has no atribute 'gyCONSTRAINT_CENTRED_VERTICALLY'".
> > > How should I use
> > > it?
> >
> > ogl.CONSTRAINT_CENTRED_VERTICALLY
> >
> No, I've tried it and doesn't work, the same error.
>
> My complete clause is: constraint =
> ogl.OGLConstraint(ogl.CONSTRAINT_CENTRED_VERTICALLY,
> triangle, [circle])
>
Hmm..I looked in the source file ogl.py and found
gyCONSTRAINT_CENTRED_VERTICALLY (sorry, I thought you had a
typo gy for py). I guess I would try
gyCONSTRAINT_CENTRED_VERTICALLY and
ogl.gyCONSTRAINT_CENTRED_VERTICALLY
although I suspect you might have tried them already.

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

_________________________________________________________________
Protege tu correo del spam y los virus con MSN 8. Prueba gratis dos meses MSN 8. http://join.msn.com/?pgmarket=es-es&XAPID=199&DI=1055