diff options
author | Guido van Rossum <guido@python.org> | 1999-01-18 15:18:57 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-01-18 15:18:57 (GMT) |
commit | 36911a1ca950e6843082657dab62c972cc02bbf9 (patch) | |
tree | 74c513c63b15a558c18f8a0bf39c38ae9a798aed /Tools/idle/WindowList.py | |
parent | f87240f44741c68aaa4d3fa3e734198254d4da17 (diff) | |
download | cpython-36911a1ca950e6843082657dab62c972cc02bbf9.zip cpython-36911a1ca950e6843082657dab62c972cc02bbf9.tar.gz cpython-36911a1ca950e6843082657dab62c972cc02bbf9.tar.bz2 |
Only deiconify when iconic.
Diffstat (limited to 'Tools/idle/WindowList.py')
-rw-r--r-- | Tools/idle/WindowList.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Tools/idle/WindowList.py b/Tools/idle/WindowList.py index 9eb7f3d..537b31c 100644 --- a/Tools/idle/WindowList.py +++ b/Tools/idle/WindowList.py @@ -49,8 +49,10 @@ class ListedToplevel(Toplevel): def wakeup(self): try: - self.tkraise() - self.wm_deiconify() + if self.wm_state() == "iconic": + self.wm_deiconify() + else: + self.tkraise() self.focus_set() except TclError: # This can happen when the window menu was torn off. |