Learning tkinter

Mats Wichmann mats at wichmann.us
Thu May 18 12:41:28 EDT 2023


On 5/18/23 08:50, Jim Schwartz wrote:
> This works for me.  Hope it helps.
> 
> from tkinter import messagebox
> 
> messagebox.showerror("Hi", f"Hello World")

It's probably instructive that IDLE always brings it in this way.

Lib/idlelib/config_key.py:from tkinter import messagebox
Lib/idlelib/configdialog.py:from tkinter import messagebox
Lib/idlelib/editor.py:from tkinter import messagebox
... etc




More information about the Python-list mailing list