Changeset 182
- Timestamp:
- Dec 4, 2009 5:01:46 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsascmds.tcl
- Property rcs:date changed from 2000/05/17 18:38:55 to 2000/06/01 02:55:03
- Property rcs:lines changed from +114 -3 to +14 -6
- Property rcs:rev changed from 1.17 to 1.18
r138 r182 163 163 164 164 # run a GSAS program that requires an experiment file for input/output 165 proc runGSASwEXP {proglist } {165 proc runGSASwEXP {proglist "concurrent 0"} { 166 166 global expgui tcl_platform 167 167 # Save the current exp file … … 183 183 } 184 184 } 185 forknewterm "$prog -- $expnam" $cmd 01 1185 forknewterm "$prog -- $expnam" $cmd $concurrent 1 1 186 186 # load the changed .EXP file automatically? 187 187 if {$expgui(autoexpload)} { … … 189 189 loadexp $expgui(expfile) 190 190 } 191 # wm deiconify .192 191 } 193 192 … … 979 978 return 980 979 } 981 # set expgui(FileMenuEXPNAM) [string toupper $expgui(FileMenuEXPNAM)]980 # append a .EXP if not present 982 981 if {[file extension $expgui(FileMenuEXPNAM)] == ""} { 983 982 append expgui(FileMenuEXPNAM) ".EXP" 984 983 } 984 # flag files that end in something other than .EXP .exp or .Exp... 985 985 if {[string toupper [file extension $expgui(FileMenuEXPNAM)]] != ".EXP"} { 986 986 tk_dialog .expFileErrorMsg "File Open Error" \ … … 989 989 return 990 990 } 991 # check on the file status 991 992 set file [file join $expgui(FileMenuDir) $expgui(FileMenuEXPNAM)] 992 993 if {$mode == "new" && [file exists $file]} { … … 996 997 if $ans {destroy .file} 997 998 return 999 } 1000 # if file does not exist in case provided, set the name to all 1001 # upper case letters, since that is the best choice. 1002 # if it does exist, read from it as is. For UNIX we will force uppercase later. 1003 if {![file exists $file]} { 1004 set expgui(FileMenuEXPNAM) [string toupper $expgui(FileMenuEXPNAM)] 1005 set file [file join $expgui(FileMenuDir) $expgui(FileMenuEXPNAM)] 998 1006 } 999 1007 if {$mode == "old" && ![file exists $file]} { … … 1656 1664 } 1657 1665 1658 grid columnconfigure .disagl 1-weight 11666 grid columnconfigure .disagl 0 -weight 1 1659 1667 grid rowconfigure .disagl 1 -weight 1 1660 1668 wm title .disagl "DISAGL results $expgui(expfile)"
Note: See TracChangeset
for help on using the changeset viewer.