Different trick to get the _test() window to pop up.

This commit is contained in:
Guido van Rossum 1998-06-19 04:34:19 +00:00
parent 5cd70f4f66
commit 268824e089
1 changed files with 5 additions and 1 deletions

View 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__':