--- ray/src/util/trad.wsh 1995/07/24 13:31:26 2.10 +++ ray/src/util/trad.wsh 1995/10/05 13:16:22 2.12 @@ -1,4 +1,4 @@ -#!/usr/local/bin/wish -f +#!/usr/local/bin/wish4.0 # SCCSid "$SunId$ LBL" # # TCL/TK-based Rad Input File Editor @@ -135,11 +135,11 @@ setbutt results rename setbutt {} button .upper.right.help -text HELP -width 9 \ -command "gethelp trad trad intro" -pack .upper.right.help -side top -pady 10 -anchor se +pack .upper.right.help -side top -pady 5 -anchor se helplink .upper.right.help trad trad help button .upper.right.quit -text QUIT \ -command {if [chksave] {destroy .}} -width 9 -pack .upper.right.quit -side top -pady 10 -anchor se +pack .upper.right.quit -side top -pady 5 -anchor se helplink .upper.right.quit trad trad quit if $smallscrn { @@ -151,7 +151,7 @@ if $smallscrn { } wm iconbitmap . @$radlib/trad.icon -proc gotfile {{o 1}} { # set file possession state +proc gotfile o { # set file possession state global oldradvar radvar catch {unset oldradvar} if $o { @@ -161,7 +161,6 @@ proc gotfile {{o 1}} { # set file possession state } } else { set mode disabled - .file invoke } foreach b {scene zone views options action results} { .$b configure -state $mode @@ -170,9 +169,10 @@ proc gotfile {{o 1}} { # set file possession state # Decide where to go and start +gotfile 0 if {[llength $argv] == 0} { set curmess "Choose a Radiance project file." - gotfile 0 + .file invoke } elseif {[llength $argv] == 1} { cd [file dirname $argv] set curfile [file tail $argv]