changing fill color of ogl-shape (again)

simon kagwe simonkagwe at yahoo.com
Sat Jun 2 02:03:54 PDT 2007


Stef Mientki <s.mientki <at> ru.nl> writes:

> But I've the feeling that this is not the correct way,
> I'ld expect something like a " Redraw"  method.

There actually is a redraw method. Do this:

dc = wx.ClientDC(<the parent>)
<the parent>.PrepareDC(dc)

shape.SetBrush(wx.WHITE_BRUSH)

shape.GetCanvas().Redraw(dc)#or use canvas name instead of shape.GetCanvas()








More information about the wxpython-users mailing list