Changeset 327
- Timestamp:
- Dec 4, 2009 5:04:12 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expgui
- Property rcs:date changed from 2000/10/12 21:40:40 to 2000/10/18 00:00:05
- Property rcs:lines changed from +97 -68 to +39 -5
- Property rcs:rev changed from 1.37 to 1.38
r323 r327 31 31 if {$tcl_version < 8.0} { 32 32 tk_dialog .expFileErrorMsg "Version Error" \ 33 " The programrequires Tcl/Tk version 8.0 or higher" error 0 "Exit"33 "EXPGUI requires Tcl/Tk version 8.0 or higher" error 0 "Exit" 34 34 exit 35 35 } … … 143 143 source [file join ~ .gsas_config] 144 144 } 145 #--------------------------------------------------------------------------- 146 # platform-specific code 145 147 if {$tcl_platform(platform) == "windows"} { 146 148 set expgui(exptool) [file join $expgui(gsasexe) exptool.exe] 149 if [catch {package require winexec}] { 150 MyMessageBox -parent . -title "WINEXEC Error" \ 151 -message "Error -- Unable to load the WINEXEC package. This is needed in Win95 machines" \ 152 -icon error -type Quit -default quit \ 153 -helplink "expgui_Win_readme.html Winexec" 154 destroy . 155 } 156 if ![file exists [file join $expgui(gsasdir) fonts grfont.dat]] { 157 MyMessageBox -parent . -title "PGPLOT Error" \ 158 -message "Warning -- Unable to find file GRFONT.DAT. GSAS graphics will not work. Is GSAS correctly installed?" \ 159 -icon warning -type {"Limp Ahead"} -default "Limp Ahead" \ 160 -helplink "expguierr.html NoPGPLOT" 161 } 147 162 } else { 148 163 set expgui(exptool) [file join $expgui(gsasexe) exptool] 164 if ![file exists [file join $expgui(gsasdir) pgl grfont.dat]] { 165 MyMessageBox -parent . -title "PGPLOT Error" \ 166 -message "Warning -- Unable to find file grfont.dat. GSAS graphics will not work. Is GSAS correctly installed?" \ 167 -icon warning -type {"Limp Ahead"} -default "Limp Ahead" \ 168 -helplink "expguierr.html NoPGPLOT" 169 } 170 if [catch {set env(GSASBACKSPACE)}] {set env(GSASBACKSPACE) 1} 149 171 } 150 172 #--------------------------------------------------------------------------- … … 152 174 if ![file exists $expgui(expfile)] { 153 175 update 154 set ans [tk_dialog .expFileErrorMsg "File Open Error" \ 155 "File [file tail $expgui(expfile)] does not exist in [file dirname $expgui(expfile)]" \ 156 error 0 "Create" "Open other"] 157 if $ans {set expgui(expfile) {}} 176 set ans [ 177 MyMessageBox -parent . -title "File Open Error" \ 178 -message "File [file tail $expgui(expfile)] does not exist in [file dirname $expgui(expfile)]. OK to create?" \ 179 -icon question -type {"Select other" "Create"} -default "select other" \ 180 -helplink "expguierr.html OpenErr" 181 ] 182 if {[string tolower $ans] != "create"} {set expgui(expfile) {}} 158 183 } 159 184 } … … 1281 1306 if {$expgui(globalmode) == 0 && [llength $expgui(curhist)] > 1} { 1282 1307 set expgui(curhist) [lindex $expgui(curhist) 0] 1308 } 1309 1310 # disable the add histogram button if no phases are present 1311 if {[llength $expmap(phaselist)] == 0} { 1312 $expgui(histFrame).newh configure -state disabled 1313 } else { 1314 $expgui(histFrame).newh configure -state normal 1283 1315 } 1284 1316 … … 1860 1892 # destroy the contents of the frame 1861 1893 eval destroy [winfo children $expgui(ProfileBox).f] 1894 # since the next steps can take a while, do a screen update 1895 update idletasks 1862 1896 1863 1897 if {$expgui(globalmode) == 0} {
Note: See TracChangeset
for help on using the changeset viewer.