From 226d649ee602ff077d28fd757670eadef8bf9d0b Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Thu, 7 Mar 2024 16:42:40 -0300 Subject: [PATCH] Change UpdatersExample scene to feature .always and .f_always syntax --- example_scenes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example_scenes.py b/example_scenes.py index ef1e4e1c..daea02eb 100644 --- a/example_scenes.py +++ b/example_scenes.py @@ -293,7 +293,7 @@ class UpdatersExample(Scene): # This ensures that the method deicmal.next_to(square) # is called on every frame - always(label.next_to, brace, UP) + label.always.next_to(brace, UP) # You could also write the following equivalent line # label.add_updater(lambda m: m.next_to(brace, UP)) @@ -302,7 +302,7 @@ class UpdatersExample(Scene): # should be functions returning arguments to that method. # The following line ensures thst decimal.set_value(square.get_y()) # is called every frame - f_always(number.set_value, square.get_width) + number.f_always.set_value(square.get_width) # You could also write the following equivalent line # number.add_updater(lambda m: m.set_value(square.get_width()))