Changeset 200
- Timestamp:
- Dec 4, 2009 5:02:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/orient.tcl
- Property rcs:date changed from 2000/06/06 03:04:09 to 2000/06/09 03:50:40
- Property rcs:rev changed from 1.1 to 1.2
- Property rcs:lines set to +18 -19
r195 r200 237 237 # loop over histograms and phases 238 238 set row -1 239 set framePO $pOrientf1240 239 foreach hist $histlist { 241 foreach phase $expmap(phaselist ) {242 grid [frame $ framePO.sp$row -bd 8 -bg white] \240 foreach phase $expmap(phaselist_$hist) { 241 grid [frame $pOrientf1.sp$row -bd 8 -bg white] \ 243 242 -columnspan 20 -column 0 -row [incr row] -sticky nsew 244 243 # add extra label here when more than one histogram is selected … … 248 247 set lbl "Phase $phase" 249 248 } 250 grid [label $ framePO.l1$row -text $lbl] \249 grid [label $pOrientf1.l1$row -text $lbl] \ 251 250 -column 0 -row [incr row] -sticky nws 252 251 set naxis [hapinfo $hist $phase POnaxis] 253 252 set col 0 254 253 foreach var {h k l} { 255 grid [label $ framePO.l${var}$row -text $var \254 grid [label $pOrientf1.l${var}$row -text $var \ 256 255 -anchor center] \ 257 256 -column [incr col] -row $row -sticky ews 258 257 } 259 grid [label $ framePO.lrat$row -text "Ratio" -anchor center] \258 grid [label $pOrientf1.lrat$row -text "Ratio" -anchor center] \ 260 259 -column 10 -row $row -sticky ews 261 260 if {$naxis > 1} { 262 grid [label $ framePO.lfrac$row -text "Fraction" \261 grid [label $pOrientf1.lfrac$row -text "Fraction" \ 263 262 -anchor center] \ 264 263 -column 13 -row $row -sticky ews 265 264 } 266 grid [label $ framePO.ld$row -text "Damping"] \265 grid [label $pOrientf1.ld$row -text "Damping"] \ 267 266 -column 15 -row $row -sticky es 268 267 for {set axis 1} {$axis <= $naxis} {incr axis} { … … 282 281 incr row 283 282 set col -1 284 grid [label $ framePO.axis$row -text "axis $axis"\283 grid [label $pOrientf1.axis$row -text "axis $axis"\ 285 284 -anchor center ] \ 286 285 -column [incr col] -row $row … … 288 287 # Axis 289 288 foreach var {h k l} { 290 grid [entry $ framePO.e${var}$row \289 grid [entry $pOrientf1.e${var}$row \ 291 290 -textvariable entryvar(${var}$phax) -width 4] \ 292 291 -column [incr col] -row $row 293 292 } 294 293 # Ratio 295 grid [entry $ framePO.erat$row \294 grid [entry $pOrientf1.erat$row \ 296 295 -textvariable entryvar(ratio$phax) -width 10] \ 297 296 -column 10 -row $row -sticky e 298 297 # ratio refine 299 grid [checkbutton $ framePO.ratref$row \298 grid [checkbutton $pOrientf1.ratref$row \ 300 299 -variable entryvar(ratioref$phax)] \ 301 300 -column 11 -row $row -sticky w 302 301 if {$naxis > 1} { 303 302 # Fraction 304 grid [entry $ framePO.efrac$row \303 grid [entry $pOrientf1.efrac$row \ 305 304 -textvariable entryvar(fraction$phax) -width 10] \ 306 305 -column 13 -row $row -sticky e 307 306 # fraction refine 308 grid [checkbutton $ framePO.fracref$row \307 grid [checkbutton $pOrientf1.fracref$row \ 309 308 -variable entryvar(fracref$phax)] \ 310 309 -column 14 -row $row -sticky w 311 310 } 312 311 #damp 313 tk_optionMenu $ framePO.opd$row \312 tk_optionMenu $pOrientf1.opd$row \ 314 313 entryvar(damp$phax) \ 315 314 0 1 2 3 4 5 6 7 8 9 316 grid $ framePO.opd$row \315 grid $pOrientf1.opd$row \ 317 316 -column 15 -row $row -sticky e 318 317 } 319 grid [button $ framePO.add$row -text "Add axis" \318 grid [button $pOrientf1.add$row -text "Add axis" \ 320 319 -command "AddNewPOaxis $hist $phase"] \ 321 320 -column 0 -columnspan 4 -row [incr row] -sticky nws … … 323 322 } 324 323 } 325 grid [frame $ framePO.sp$row -bd 8 -bg white] \324 grid [frame $pOrientf1.sp$row -bd 8 -bg white] \ 326 325 -columnspan 20 -column 0 -row [incr row] -sticky nsew 327 326
Note: See TracChangeset
for help on using the changeset viewer.