Hello wxpython users,
I'm new to the list and to wxpython,
I need to understand how to use glcanvas, cut and
pasting from the example of the demo work, but I'm wondering
about the OnPaint/OnDraw trickery, especially the separation
of the GL init code in it's own method (InitGL) and not
in __init__, and this code:
def OnPaint(self, event):
dc = wx.PaintDC(self)
self.SetCurrent()
if not self.init:
self.InitGL()
self.init = True
self.OnDraw()
why dc, we seem to not use it further,
what is self.SetCurrent().
Thanks a lot!
···
--
Philippe Strauss
av. de Beaulieu 25
1004 Lausanne
http://www.maitre-toilier.ch/