Search notes:

Python standard library: tkinter

tkinter allows to use the Tcl/Tk GUI toolkit from Python.
Installing tkinter was especially helpful to me when using matplotlib and/or pyplot when I had the warning Matplotlib is currently using agg, which is a non-GUI backend, so cannot show the figure..

Installing tkinter

Because tkinter relies on the Tcl/Tk toolkit, tkinter might not be installed together with a default Python installation, even though tkinter belongs to Python's standard library.
This Stackoverflow answer and its comments suggest to install tkinter with something along the lines of:
Apt based distros (Ubuntu, Debian) sudo apt install -y python3-tk
Fedora sudo dnf install python3-tkinter
macOS brew install python-tk

Checking if tkinter is properly installed

$ python3 -m tkinter

See also

wxPython

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1745042748, '3.146.176.29', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Python/standard-library/tkinter/index(58): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78