Exemplo n.º 1
0
    def OnPaint(self,event):
        dc = wx.PaintDC(self)
        self.SetCurrent()
        if not self.init:
            self.InitGL()
            self.init = 1
        
        size = self.GetSize()
        vtpSimple.setCanvasSize(size.width, size.height)

        self.OnDraw()
        return
Exemplo n.º 2
0
 def OnSize(self, event):
     self.SetCurrent()
     size = event.GetSize()
     vtpSimple.setCanvasSize(size.width, size.height)
     return