def ResizedMethod(self, width, height): SketchView.ResizedMethod(self, width, height) self.FitToWindow(save_viewport=0)