From 268824e089060dcc5d62a538cc19db6652daaa79 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 19 Jun 1998 04:34:19 +0000 Subject: Different trick to get the _test() window to pop up. --- Lib/lib-tk/Tkinter.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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__': -- cgit v0.12