Version 4 of How to ensure my Windows or MacOS Tk process has a console

Updated 2002-11-07 15:41:49

[... catch { console show } ...]

This gives you a toplevel where stdout and stderr go, and you can also interact with the Tcl interpreter.


The menu page has a piece of code that you can use to add a 'Show Console' operation to the system menu. It's a handy thing to have in any Tk application.

RS very often adds this little debugging helper to a Tk script:

 bind . ? {console show}