📜  tkinter 简单通知 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:16.194000             🧑  作者: Mango

代码示例1
from tkinter import *
from sys import exit
def popupError(s):
    popupRoot = Tk()
    popupRoot.after(2000, exit)
    popupButton = Button(popupRoot, text = s, font = ("Verdana", 12), bg = "yellow", command = exit)
    popupButton.pack()
    popupRoot.geometry('400x50+700+500')
    popupRoot.mainloop()