]> granicus.if.org Git - python/commitdiff
Different trick to get the _test() window to pop up.
authorGuido van Rossum <guido@python.org>
Fri, 19 Jun 1998 04:34:19 +0000 (04:34 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 19 Jun 1998 04:34:19 +0000 (04:34 +0000)
Lib/lib-tk/Tkinter.py

index 13eb1f6917fd6e6e50f4b18f8160f67ab3c62779..a508d26d12c6b69c145ded6c1ac2ed20ebafe743 100644 (file)
@@ -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__':