mirror of https://github.com/kivy/kivy.git
app: force deletion of child when app is stopped/leaving
This commit is contained in:
parent
cbd9ed2f73
commit
1ddbd8b71e
|
@ -542,6 +542,10 @@ class App(EventDispatcher):
|
||||||
runTouchApp()
|
runTouchApp()
|
||||||
self.dispatch('on_stop')
|
self.dispatch('on_stop')
|
||||||
|
|
||||||
|
# Clear the window children
|
||||||
|
for child in Window.children:
|
||||||
|
Window.remove_widget(child)
|
||||||
|
|
||||||
def stop(self, *largs):
|
def stop(self, *largs):
|
||||||
'''Stop the application.
|
'''Stop the application.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue