python-tk@3.11

Python 3.11 interface to Tcl/Tk for GUI development

brewmacoslinux
Try with needOr install directly
Source

About

Python interface to Tcl/Tk

Commands

python3.11

Examples

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