如果想要让tkinter窗口一直置顶,输入以下代码:
app = Tk()# 定义一个界面
app.wm_attributes('-topmost',1)# GUI界面置顶
app.mainloop()# app长显