diff options
author | Guido van Rossum <guido@python.org> | 1998-06-19 04:34:19 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-06-19 04:34:19 (GMT) |
commit | 268824e089060dcc5d62a538cc19db6652daaa79 (patch) | |
tree | 613c88e5aa51cb56a0396c4cf7a2309d1bea55a2 /Lib/lib-tk | |
parent | 5cd70f4f66f2424e7eec431c9e96270e341a5e55 (diff) | |
download | cpython-268824e089060dcc5d62a538cc19db6652daaa79.zip cpython-268824e089060dcc5d62a538cc19db6652daaa79.tar.gz cpython-268824e089060dcc5d62a538cc19db6652daaa79.tar.bz2 |
Different trick to get the _test() window to pop up.
Diffstat (limited to 'Lib/lib-tk')
-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__': |