From: Guido van Rossum Date: Fri, 9 May 1997 00:59:43 +0000 (+0000) Subject: Add root.tkraise() to the _test() program so the window doesn't hide X-Git-Tag: v1.5a1~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16cd332aabe3706f7b4522877f9214f0167bc461;p=python Add root.tkraise() to the _test() program so the window doesn't hide behind the shell window on NT. --- diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 740dc89636..d567467fa5 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 740dc89636..d567467fa5 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__':