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