python-tk@3.13

Python 3.13 interface to Tcl/Tk for GUI application development

brewmacoslinux
Try with needOr install directly
Source

About

Python interface to Tcl/Tk

Commands

python3.13

Examples

Create a simple Tkinter window$ python3.13 -c "import tkinter as tk; root = tk.Tk(); root.title('Hello'); root.geometry('300x200'); tk.Label(root, text='Hello Tkinter').pack(); root.mainloop()"
Run a Python script using Tkinter GUI$ python3.13 gui_app.py
Check if Tkinter is properly installed$ python3.13 -m tkinter