python-tk@3.12

Python 3.12 interface to Tcl/Tk for GUI development

brewmacoslinux
Try with needOr install directly
Source

About

Python interface to Tcl/Tk

Commands

python3.12

Examples

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