python的tkinter对话框
import tkinter.messagebox #这个是消息框,对话框的关键 root = tkinter.Tk() root.withdraw() a=tkinter.messagebox.showinfo('提示','人生苦短') print(a)
运行结果:
import tkinter.messagebox #这个是消息框,对话框的关键 root = tkinter.Tk() root.withdraw() a=tkinter.messagebox.showinfo('提示','人生苦短') print(a)
运行结果: