python-tk@3.9

Python 3.9 interface to Tcl/Tk for building graphical user interfaces

brewmacoslinux
Try with needOr install directly
Source

About

Python interface to Tcl/Tk

Commands

python3.9

Examples

Create a simple GUI window with a button using Tkinter$ python3.9 -c "import tkinter as tk; root = tk.Tk(); root.title('Hello'); tk.Button(root, text='Click Me').pack(); root.mainloop()"
Run a Python script that uses Tkinter for GUI$ python3.9 my_gui_app.py
Check if Tkinter is properly installed with python-tk@3.9$ python3.9 -m tkinter