tkinter 窗口去边框,全屏

发布于 2020-03-05  1590 次阅读


GUI程序界面的全屏不是最大化,

win.attributes("-fullscreen",True)#True全屏,False不全屏

 

 

from tkinter import *

win = Tk()
win.attributes("-fullscreen",True)
Label(win,text = "你好,世界",font = ("楷体",50)).pack()
mainloop()

不全屏:

全屏: