summaryrefslogtreecommitdiffstats
path: root/Tools/idle/EditorWindow.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-01-18 15:18:57 (GMT)
committerGuido van Rossum <guido@python.org>1999-01-18 15:18:57 (GMT)
commit36911a1ca950e6843082657dab62c972cc02bbf9 (patch)
tree74c513c63b15a558c18f8a0bf39c38ae9a798aed /Tools/idle/EditorWindow.py
parentf87240f44741c68aaa4d3fa3e734198254d4da17 (diff)
downloadcpython-36911a1ca950e6843082657dab62c972cc02bbf9.zip
cpython-36911a1ca950e6843082657dab62c972cc02bbf9.tar.gz
cpython-36911a1ca950e6843082657dab62c972cc02bbf9.tar.bz2
Only deiconify when iconic.
Diffstat (limited to 'Tools/idle/EditorWindow.py')
-rw-r--r--Tools/idle/EditorWindow.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Tools/idle/EditorWindow.py b/Tools/idle/EditorWindow.py
index f3dacde..96a56de 100644
--- a/Tools/idle/EditorWindow.py
+++ b/Tools/idle/EditorWindow.py
@@ -157,8 +157,10 @@ class EditorWindow:
menu.configure(postcommand=self.postwindowsmenu)
def wakeup(self):
- self.top.tkraise()
- self.top.wm_deiconify()
+ if self.top.wm_state() == "iconic":
+ self.top.wm_deiconify()
+ else:
+ self.top.tkraise()
self.text.focus_set()
menu_specs = [