Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Aug 06, 2012
@akshayaurora akshayaurora UIX:ScreenManager: ensure screen is orphaned before before adding it to
screenmanager
06f6f59
Commits on Aug 07, 2012
@tito tito Merge pull request #614 from kivy/screen_addwidg
UIX:ScreenManager: ensure screen is orphaned before before adding it to
238c33c
Showing with 3 additions and 0 deletions.
  1. +3 −0 kivy/uix/screenmanager.py
View
3 kivy/uix/screenmanager.py
@@ -580,6 +580,9 @@ def add_widget(self, screen):
self.current = screen.name
def real_add_widget(self, *l):
+ # ensure screen is removed from it's previous parent before adding'
+ if l[0].parent:
+ l[0].parent.remove_widget(l[0])
super(ScreenManager, self).add_widget(*l)
def real_remove_widget(self, *l):

No commit comments for this range

Something went wrong with that request. Please try again.