diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 740dc896367..d567467fa55 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -1722,6 +1722,7 @@ def _test(): root.test = test quit = Button(root, text="QUIT", command=root.destroy) quit.pack() + root.tkraise() root.mainloop() if __name__ == '__main__': diff --git a/Lib/tkinter/Tkinter.py b/Lib/tkinter/Tkinter.py index 740dc896367..d567467fa55 100755 --- a/Lib/tkinter/Tkinter.py +++ b/Lib/tkinter/Tkinter.py @@ -1722,6 +1722,7 @@ def _test(): root.test = test quit = Button(root, text="QUIT", command=root.destroy) quit.pack() + root.tkraise() root.mainloop() if __name__ == '__main__':