add tips for interactive mode

This commit is contained in:
TonyCrane
2021-10-06 17:28:18 +08:00
parent c1242d2dd5
commit f626a1a1e2

View File

@ -100,6 +100,8 @@ class Scene(object):
# If there is a window, enter a loop # If there is a window, enter a loop
# which updates the frame while under # which updates the frame while under
# the hood calling the pyglet event loop # the hood calling the pyglet event loop
print("Tips: You are now in the interactive mode. Now you can use the keyboard\
and the mouse to interact with the scene. Just press `q` if you want to quit.")
self.quit_interaction = False self.quit_interaction = False
self.lock_static_mobject_data() self.lock_static_mobject_data()
while not (self.window.is_closing or self.quit_interaction): while not (self.window.is_closing or self.quit_interaction):