- Timestamp:
- Dec 4, 2009 5:01:16 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expgui
- Property rcs:date changed from 2000/05/17 18:45:27 to 2000/05/18 15:58:18
- Property rcs:lines changed from +48 -32 to +19 -10
- Property rcs:rev changed from 1.24 to 1.25
r139 r152 128 128 # commands for adding phases, histograms & atoms 129 129 source [file join $expgui(scriptdir) addcmds.tcl] 130 # commands for constraints 131 source [file join $expgui(scriptdir) atomcons.tcl] 130 132 #--------------------------------------------------------------------------- 131 133 # override options with locally defined values … … 326 328 if {$newexpfile == ""} return 327 329 330 # switch to the 1st page 331 RaisePage lsFrame 332 328 333 if ![file exists $newexpfile] { 329 334 # you've been warned this .EXP does not exist! … … 345 350 set expgui(curhist) {} 346 351 } 347 RaisePage lsFrame348 352 if {[CountHistory] > 100} { 349 353 DeleteHistoryRecords "This .EXP file has [CountHistory] history records\nErasing most will speed EXPGUI" … … 674 678 proc setphases {} { 675 679 global expgui expmap 676 eval destroy [ pack slaves$expgui(phaseFrame).top.ps]680 eval destroy [winfo children $expgui(phaseFrame).top.ps] 677 681 foreach num $expmap(phaselist) type $expmap(phasetype) { 678 682 pack [button $expgui(phaseFrame).top.ps.$num -text $num \ … … 1219 1223 grid $expgui(histFrame).top -column 1 -row 0 -sticky nsew 1220 1224 set expgui(bkglbl) "" 1221 eval destroy [ grid slaves$expgui(diffBox)]1225 eval destroy [winfo children $expgui(diffBox)] 1222 1226 set entrycmd(trace) 1 1223 1227 return … … 1259 1263 } 1260 1264 1261 eval destroy [ grid slaves$expgui(diffBox)]1265 eval destroy [winfo children $expgui(diffBox)] 1262 1266 if {$expgui(globalmode) == 0} { 1263 1267 if {[string range $expmap(htype_$hist) 2 2] == "T"} { … … 1595 1599 # destroy the contents of the frame 1596 1600 set phaseFractf1 $expgui(FracBox).f 1597 eval destroy [ grid slaves$phaseFractf1]1601 eval destroy [winfo children $phaseFractf1] 1598 1602 # reenable traces on entryvar 1599 1603 set entrycmd(trace) 1 … … 1632 1636 set phaseFractf1 $expgui(FracBox).f 1633 1637 # destroy the contents of the frame 1634 eval destroy [ grid slaves$phaseFractf1]1638 eval destroy [winfo children $phaseFractf1] 1635 1639 if {$expgui(globalmode) != 0} { 1636 1640 set txt "Phase Fractions for Histograms: [CompressList $histlist]" … … 1712 1716 1713 1717 # destroy the contents of the frame 1714 eval destroy [ grid slaves$expgui(ProfileBox).f]1718 eval destroy [winfo children $expgui(ProfileBox).f] 1715 1719 1716 1720 if {$expgui(globalmode) == 0} { … … 2183 2187 global expgui expmap 2184 2188 # destroy the contents of the frame 2185 eval destroy [ grid slaves$w]2189 eval destroy [winfo children $w] 2186 2190 set histlist {} 2187 2191 foreach n $expgui(curhist) { … … 2437 2441 lappend expgui(frameactionlist) "profFrame DisplayProfile" 2438 2442 lappend expgui(GlobalModeAllDisable) "profFrame {.n itemconfigure profPane}" 2443 set expgui(consFrame) [\ 2444 .n insert end consPane -text Constraints \ 2445 -raisecmd "set expgui(pagenow) consFrame; DisplayConstraintsPane"\ 2446 -createcmd MakeConstraintsPane] 2447 lappend expgui(frameactionlist) "consFrame DisplayConstraintsPane" 2439 2448 } else { 2440 2449 Notebook:create .n -pages {lsFrame phaseFrame histFrame fracFrame profFrame}
Note: See TracChangeset
for help on using the changeset viewer.