root = Tk()

#置顶
root.wm_attributes('-topmost',1)

 

#取消置顶

root.wm_attributes('-topmost',0)

相关文章: