From 1ddbd8b71e1af0046f8e8861b7afe21d5763ae10 Mon Sep 17 00:00:00 2001 From: Mathieu Virbel Date: Mon, 8 Oct 2012 12:49:42 +0200 Subject: [PATCH] app: force deletion of child when app is stopped/leaving --- kivy/app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kivy/app.py b/kivy/app.py index 1a296abd9..77e9d080b 100644 --- a/kivy/app.py +++ b/kivy/app.py @@ -542,6 +542,10 @@ class App(EventDispatcher): runTouchApp() self.dispatch('on_stop') + # Clear the window children + for child in Window.children: + Window.remove_widget(child) + def stop(self, *largs): '''Stop the application.