MCPcopy Create free account
hub / github.com/Image-Py/imagepy / DoSetViewport

Method DoSetViewport

imagepy/core/myvi/canvas3d.py:50–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

48 event.Skip()
49
50 def DoSetViewport(self):
51 size = self.size = self.GetClientSize()
52 self.SetCurrent(self.context)
53 if not self.manager is None and not self.manager.ctx is None:
54 self.manager.set_viewport(0, 0, self.Size.width, self.Size.height)
55
56 def OnPaint(self, event):
57 dc = wx.PaintDC(self)

Callers 1

InitGLMethod · 0.95

Calls 1

set_viewportMethod · 0.80

Tested by

no test coverage detected