home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / lib / tk / demos / hello < prev    next >
Encoding:
Text File  |  1995-07-21  |  392 b   |  13 lines

  1. #!/usr/skunk/bin/wish -f
  2. # Simple Tk script to create a button that prints "Hello, world".
  3. # Click on the button to terminate the program.
  4. # The first line below creates the button, and the second line
  5. # asks the packer to shrink-wrap the application's main window
  6. # around the button.
  7.  
  8. button .hello -text "Hello, world" -command {
  9.     puts stdout "Hello, world"; destroy .
  10. }
  11. pack .hello
  12.