def OnPaint(self, event):
dc = wx.PaintDC(self)
self.SetCurrent(self.context) # <== this was missing when I wrote the book in 2015...
if not self.init:
self.InitGL()
self.init = True
self.OnDraw()
import_OpenGL_cube_and_cone.py 文件源码
python
阅读 20
收藏 0
点赞 0
评论 0
评论列表
文章目录