diff --git a/Tools/idle/WindowList.py b/Tools/idle/WindowList.py index b9b0bb11522..9eb7f3dd5e7 100644 --- a/Tools/idle/WindowList.py +++ b/Tools/idle/WindowList.py @@ -48,6 +48,11 @@ def get_title(self): return self.wm_title() def wakeup(self): - self.tkraise() - self.wm_deiconify() - self.focus_set() + try: + self.tkraise() + self.wm_deiconify() + self.focus_set() + except TclError: + # This can happen when the window menu was torn off. + # Simply ignore it. + pass