0
我正在编程一个Tkinter中的小程序,并希望打开两个窗口。然后我想在前面放一扇窗户。程序代码:不能专注于Python Tkinter窗口
from tkinter import *
root = Tk()
root.title("ROOT")
new = Tk()
new.title("NEW")
new.lift()
root.mainloop()
new.lift()
new.mainloop()
new.lift()
我对new.lift做错了什么?新的dosn't来到前面:( 有人知道如何把前面的窗口,并给窗口焦点?
有帮助吗? http://stackoverflow.com/questions/1892339/make-tkinter-jump-to-the-front – lolopop 2014-11-02 09:15:43
谢谢,它帮助! – VicStudio 2014-11-02 10:09:34
我在new.lift()中遇到了一些问题。向上滑动! – VicStudio 2014-11-02 10:28:40