From 05bd710ebbecea347bee9df2d56f86a9cbc1ac41 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Tue, 5 Feb 2019 16:16:18 -0800 Subject: [PATCH] Fixed error with how ScreenRectangle inherited from Rectangle --- manimlib/mobject/frame.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/manimlib/mobject/frame.py b/manimlib/mobject/frame.py index 6d354edb..5b51fce3 100644 --- a/manimlib/mobject/frame.py +++ b/manimlib/mobject/frame.py @@ -6,12 +6,15 @@ from manimlib.utils.config_ops import digest_config class ScreenRectangle(Rectangle): CONFIG = { "width_to_height_ratio": 16.0 / 9.0, - "height": 4, + "height": 4 } - def generate_points(self): + def __init__(self, **kwargs): + digest_config(self, kwargs) self.width = self.width_to_height_ratio * self.height - Rectangle.generate_points(self) + Rectangle.__init__( + self, height=self.height, width=self.width, **kwargs + ) class FullScreenRectangle(ScreenRectangle):