[wxPython-users] Re: changing fill color of ogl-shape (again)
Stef Mientki
s.mientki at ru.nl
Sat Jun 2 04:18:34 PDT 2007
simon kagwe wrote:
> 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()
>
>
>
thanks Simon,
that does the job.
cheers,
Stef
More information about the wxpython-users
mailing list