File:  [Micropolis - Activity] / micropolis / src / tk / library / demos / hello
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed Mar 11 09:08:51 2020 UTC (6 years, 4 months ago) by root
Branches: donhopkins, MAIN
CVS tags: activity, HEAD
Micropolis Activity

#!/usr/local/bin/wish -f
# Simple Tk script to create a button that prints "Hello, world".
# Click on the button to terminate the program.
# 
# The first line below creates the button, and the second line
# arranges for packer to manage the button's geometry, centering
# it in the application's main window.

button .hello -text "Hello, world" -command {
    puts stdout "Hello, world"; destroy .
}
pack append . .hello {top}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.