python tkinter窗口弹出置顶的方法

加上下面两句即可实现root窗口的置顶显示,可以用于某些程序的消息提示,能够弹出到桌面显示

root = Tk()
root.wm_attributes('-topmost',1)

原文地址:https://www.cnblogs.com/shuchengxiang/p/6632140.html