diff --git a/kivy/app.py b/kivy/app.py index 77e9d080b..1b47d764c 100644 --- a/kivy/app.py +++ b/kivy/app.py @@ -543,8 +543,8 @@ class App(EventDispatcher): self.dispatch('on_stop') # Clear the window children - for child in Window.children: - Window.remove_widget(child) + for child in window.children: + window.remove_widget(child) def stop(self, *largs): '''Stop the application.