mirror of https://github.com/kivy/kivy.git
app: fix window remove_widget()
This commit is contained in:
parent
1f2665c820
commit
d5e5c67c2f
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue