OGL Problems: again..sorry

Hi ppl...

I am having problems with OGL. The big picture is as follows. I want to allow
the user to create a Shape on demand. The user will be able to add and remove
circles, rectangles, polygons, ellipses, lines, images(bmp). The structure of
this shape is saved in XML and later loaded by a second application. The
second application recreates the shape. The user will now be able to edit
information within the shape that corresponds to an XML file that holds that
information. The question is, what wxOGL shape can I use to accomplish this.
I have looked at wxCompositeShape and that gives me problems when I am
computing the contstraints. I have used wxDrawnShape which works up until I
am moving the image. The wxDrawnShape does not call clear and redraw on the
canvas for new moves. Also the wxDrawnShape is not drawn properly when moved.
The newly created shape at the new position is black where it should be
white. i.e. the fills are not being done. Except, if I have to switch to
another window and back to the OGL window that contains the shape, the shape
gets drawn perfectly. I am definately confused here.

My code for this is attached.

I would appreciate any help I can get. Is there any definitive guide to OGL
programming using wxPython...??

Bilal A.R. Jagot
CeTAS
University of the Witwaterrand
Johannesburg
+27 11 717 7226
+27 83 556 3927

OGLFrame.py (12.4 KB)