I don't think a fix is going to work for you. GetLineControlPoints
seems to be rather useless to me, even if it worked. The only solution that
I see if you want to control where individual line segments are drawn is to
create multiple wxLineShape objects and connect them together with vertex
shapes. Maybe Robin will come up with something ingenious, but I suspect that
the real problem is a fundamental deficiency in OGL.
Let me know if you come up with another idea.
Matthew
···
-----Original Message-----
From: roland.baumann@daimlerchrysler.com
[mailto:roland.baumann@daimlerchrysler.com]
Sent: Wednesday, June 25, 2003 6:33 AM
To: wxpython-users@lists.wxwindows.org
Subject: [wxPython-users] OGL: wxLineShape.GetLineControlPoints crashes
I have a problem with OGL's wxLineShape.GetLineControlPoints. When this
operation is called, python crashes. After a little searching I found a hint on
the wxPython-dev list where Matthew Thornley reported the same problem. He
found out that what happens is, wxPython assumes GetLineControlPoints returns a
wxList of wxLineControlPoint* (or rather wxShape*) when really it returns a
wxList containing wxRealPoint* objects.
Is there any fix to this? Even if there is a fix for GetLineControlPoints,
would this enable me to change the coordinates of the LineControlPoints? For
this to work, the operation must not return copies of the elements in the list
but references to the wxRealPoint objects. I am not into the depths of wxPython
and SWIG, so I would appreciate if someone could point me to a solution.
Thanks,
Roland
Dr. Roland Baumann
DaimlerChrysler AG
Research and Technology
Software Architecture
096/U800 - RIC/SA
89013 Ulm/Germany
Phone +49-(0)7 31-505-2238
Fax +49-(0)7 31-17-4223
mailto:roland.baumann@daimlerchrysler.com
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org