]> granicus.if.org Git - python/commitdiff
Add root.tkraise() to the _test() program so the window doesn't hide
authorGuido van Rossum <guido@python.org>
Fri, 9 May 1997 00:59:43 +0000 (00:59 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 9 May 1997 00:59:43 +0000 (00:59 +0000)
behind the shell window on NT.

Lib/lib-tk/Tkinter.py
Lib/tkinter/Tkinter.py

index 740dc8963674de80f41fc37e03336ef1e557e706..d567467fa551b0d226ca822a8f54e19103d82d24 100644 (file)
@@ -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__':
index 740dc8963674de80f41fc37e03336ef1e557e706..d567467fa551b0d226ca822a8f54e19103d82d24 100755 (executable)
@@ -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__':