[wxPython-users] wx.lib.ogl - weirdness after
LineShape.InsertLineControlPoint
Pierre Hjälm
pierre.hjalm at dis.uu.se
Tue Jan 9 02:43:27 PST 2007
Gary Greyling <gary.greyling at gmail.com> writes:
> Hello Everybody,
>
> The issue i'm having is as follows, the default behavior of a line
> attached to say 2 RectangleShapes is to point to the center of each
> object. Now the issue is that once you add a line control point the line
> edges lock into position on the edge where they where last. The
> question: Is this intentional and/or is there a way to change this ?
>
Ok, I must confess that I don't quite understand the question.
If you look at how the demo does it, it creates a line and adds two
line control points. This makes the line attach to the edge of the shapes.
I'm not quite sure how you would manage to do otherwise. Could you
perhaps put together an example of your problem?
And just to be practical, Brian's questions:
> Some general questions that you may consider for the end of the week:
> How did you learn wxogl?
> How have you been able to convert it all to python without actually
> doing anything with (some of) it?
>
I used the old OGL docs (you'll have to google for them) and the source to
learn OGL. That, and lots of trial and error (the docs weren't always
correct).
The C code translated quite nicely to python, so there really wasn't much
to alter. Apart from the occasional bug fix.
--
Pierre Hjälm
More information about the wxpython-users
mailing list