From 1f004fa12e19e1c77ad1fda8a619dba7b68d15af Mon Sep 17 00:00:00 2001 From: Paul Craven Date: Tue, 7 Mar 2023 18:17:17 -0600 Subject: [PATCH] Update --- arcade/application.py | 2 +- arcade/examples/transitions.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arcade/application.py b/arcade/application.py index 519738818..1f48cb2ce 100644 --- a/arcade/application.py +++ b/arcade/application.py @@ -678,7 +678,7 @@ def show_view(self, new_view: 'View'): """ if not isinstance(new_view, View): raise ValueError("Must pass an arcade.View object to " - "Window.show_view()") + f"Window.show_view() {type(new_view)}") # Store the Window that is showing the "new_view" View. if new_view.window is None: diff --git a/arcade/examples/transitions.py b/arcade/examples/transitions.py index c638d8f0a..b4907ca7b 100644 --- a/arcade/examples/transitions.py +++ b/arcade/examples/transitions.py @@ -95,7 +95,7 @@ def on_draw(self): def on_key_press(self, key, _modifiers): """ Handle key presses. In this case, we'll just count a 'space' as - game over and advance to the game over view. """ + game over and advance to the game overview. """ if key == arcade.key.SPACE: self.fade_out = 0 @@ -110,7 +110,7 @@ def on_show_view(self): self.background_color = arcade.color.BLACK def on_draw(self): - """ Draw the game over view """ + """ Draw the game overview """ self.clear() arcade.draw_text("Game Over - press SPACE to advance", WIDTH / 2, HEIGHT / 2, arcade.color.WHITE, 30, anchor_x="center")