diff options
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 13eb1f6..a508d26 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -1875,7 +1875,11 @@ def _test(): root.test = test quit = Button(root, text="QUIT", command=root.destroy) quit.pack() - root.tkraise() + # The following three commands are needed so the window pops + # up on top on Windows... + root.iconify() + root.update() + root.deiconify() root.mainloop() if __name__ == '__main__': |