def Draw(self, viewport): self.viewport = viewport self.viewport.LockUpdate() DrawableManager.Draw(self, viewport) if self.hist: self.hist.Draw(viewport) self.viewport.UnlockUpdate()
def Draw(self, viewport): self.viewport = viewport with LockViewport(self.viewport): DrawableManager.Draw(self, viewport) if self.hist: self.hist.Draw(viewport)