在 python 中,我尝试更改 tkinter 消息框窗口的宽度,以便文本可以适合一行。
import tkinter as tk
from tkinter import messagebox
root = tk.Tk()
messagebox.showinfo("info","this information goes beyond the width of the messagebox")
root.mainloop()
Run Code Online (Sandbox Code Playgroud)