[go: up one dir, main page]

Skip to content

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

Notifications You must be signed in to change notification settings

afairless/pop_up_python_print

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

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