Description #
Wish is the windowing shell for Tcl/Tk scripting, providing an environment to run Tcl scripts with GUI support using the Tk toolkit.
History #
Wish was introduced alongside Tcl/Tk in the early 1990s to support GUI scripting and rapid application development on Unix and Windows.
Hello World Code #
tk_messageBox -message "Hello, World!"
How to Run #
Option 1: Online
Try Tcl/Tk Online
Option 2: Local
Install Tcl/Tk and run:
wish script.tcl
Key Concepts #
- Tcl scripting with Tk GUI toolkit
- Supports window creation and event handling
- Cross-platform GUI scripting
- Interactive or script-driven
- Extensible with C libraries
- Simple and readable scripting syntax
- Used for rapid prototyping
- Supports widgets like buttons, menus, dialogs
- Embedded in various applications
- Popular in education and automation
Try It Online #
Fun Facts #
- Wish stands for “Windowing Shell.”
- Tcl/Tk was one of the first cross-platform GUI toolkits.
- Tcl scripts with Wish can build complete GUI apps.
- Popular in early web and automation tools.
- Still actively maintained with modern extensions.