3
使用Python 2和Tkinter,如何在沒有窗口上方標題欄的情況下啓動Tk窗口?使用未裝飾的窗口啓動Tkinter
from Tkinter import *
root = Tk()
frame = Frame(root)
frame.pack()
bottomframe = Frame(root)
bottomframe.pack(side = BOTTOM)
redbutton = Button(frame, text="Red", fg="red")
redbutton.pack(side = LEFT)
greenbutton = Button(frame, text="Brown", fg="brown")
greenbutton.pack(side = LEFT)
bluebutton = Button(frame, text="Blue", fg="blue")
bluebutton.pack(side = LEFT)
blackbutton = Button(bottomframe, text="Black", fg="black")
blackbutton.pack(side = BOTTOM)
root.mainloop()
這看起來完全刪除所有格式的根窗口。有沒有辦法'只'刪除標題欄? –
如果你只想刪除標題欄,我想你想要的東西更像[使用TCL擴展在Tkinter中設置本地窗口樣式](http://stackoverflow.com/q/3306189/369450)。 – cpburnz