/pop_up_python_print

Re-directs Python print output to a Tcl/Tk pop-up window

Primary LanguagePython

Re-direct Python print output to pop-up window

The code in this repository adapts a way to redirect output from Python print statements to a pop-up window using the Tcl/Tk GUI framework, which is accessed through the Python package tkinter.

If it is run in a terminal, the code will produce print statements in both the terminal and in the pop-up window.

All the Python packages used in the code are included in the Python standard library, so the code should work with any recent version of Python. An Anaconda environment is included in case one has any problems running it.

Run with Anaconda

In the src directory, you can run these commands:

conda env create -f environment.yml

conda activate py3_11

python redirect_print.py