hello 509 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. # the next line restarts using wish \
  3. exec wish "$0" ${1+"$@"}
  4. # hello --
  5. # Simple Tk script to create a button that prints "Hello, world".
  6. # Click on the button to terminate the program.
  7. package require Tk
  8. # The first line below creates the button, and the second line
  9. # asks the packer to shrink-wrap the application's main window
  10. # around the button.
  11. button .hello -text "Hello, world" -command {
  12. puts stdout "Hello, world"; destroy .
  13. }
  14. pack .hello
  15. # Local Variables:
  16. # mode: tcl
  17. # End: