python-tk@3.10

Python 3.10 interface to Tcl/Tk for GUI development

brewmacoslinux
Try with needOr install directly
Source

About

Python interface to Tcl/Tk

Commands

python3.10

Examples

Create a simple Tkinter window with a button$ python3.10 -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 GUI$ python3.10 my_gui_app.py
Check if tkinter is properly installed with python-tk@3.10$ python3.10 -m tkinter