File:  [Micropolis - Activity] / micropolis / src / tk / library / demos / size
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 script to change size of something in a window.

if "$argc < 3" {error "Usage: size appName window option"}
set appName [lindex $argv 0]
set widget [lindex $argv 1]
set option [lindex $argv 2]

pack append . [scale .scale -command {send $appName $widget config $option} \
	-label "Pixels" -length 250 \
	-from 0 -to 100 -orient vertical] {top expand filly}

bind . <Control-q> {destroy .}
bind . <Control-c> {destroy .}
focus .

unix.superglobalmegacorp.com

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