mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Different trick to get the _test() window to pop up.
This commit is contained in:
parent
5cd70f4f66
commit
268824e089
1 changed files with 5 additions and 1 deletions
|
|
@ -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__':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue