python 中的警告框使用 turtle
Alert box in python using turtle
当我 运行 使用海龟图形的程序时,如何让警告框出现?我们有 textinput() 但它要求用户输入一些东西,但我只想在那里显示一些文本。乌龟图形可能吗?
试试这个:
from tkinter import *
from tkinter import messagebox
root = Tk()
messagebox.showinfo("showinfo", "Information") # The alert.
root.mainloop()
当我 运行 使用海龟图形的程序时,如何让警告框出现?我们有 textinput() 但它要求用户输入一些东西,但我只想在那里显示一些文本。乌龟图形可能吗?
试试这个:
from tkinter import *
from tkinter import messagebox
root = Tk()
messagebox.showinfo("showinfo", "Information") # The alert.
root.mainloop()