#!python # -*- mode: python; Encoding: utf-8; coding: utf-8 -*- # Last updated: <2023/06/07 20:11:46 +0900> """ Show MessageBox use tkinter, messagebox. Windows10 x64 21H1 + Python 3.10.10 64bit + tkinter """ import tkinter as tk from tkinter import messagebox text = "This message is temporary.\nIt is displayed using tkinter's messagebox." title = "Title" root = tk.Tk() root.withdraw() messagebox.showinfo(title, text)