mirror of
https://github.com/python/cpython.git
synced 2025-09-13 20:27:05 +00:00
Add root.tkraise() to the _test() program so the window doesn't hide
behind the shell window on NT.
This commit is contained in:
parent
9a0f04d4cd
commit
16cd332aab
2 changed files with 2 additions and 0 deletions
|
@ -1722,6 +1722,7 @@ def _test():
|
||||||
root.test = test
|
root.test = test
|
||||||
quit = Button(root, text="QUIT", command=root.destroy)
|
quit = Button(root, text="QUIT", command=root.destroy)
|
||||||
quit.pack()
|
quit.pack()
|
||||||
|
root.tkraise()
|
||||||
root.mainloop()
|
root.mainloop()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
@ -1722,6 +1722,7 @@ def _test():
|
||||||
root.test = test
|
root.test = test
|
||||||
quit = Button(root, text="QUIT", command=root.destroy)
|
quit = Button(root, text="QUIT", command=root.destroy)
|
||||||
quit.pack()
|
quit.pack()
|
||||||
|
root.tkraise()
|
||||||
root.mainloop()
|
root.mainloop()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue