Changeset 729
- Timestamp:
- Dec 4, 2009 5:11:02 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cifselect.tcl
- Property rcs:date changed from 2002/09/05 18:28:06 to 2003/08/11 19:27:59
- Property rcs:lines changed from +3 -2 to +23 -23
- Property rcs:rev changed from 1.2 to 1.3
r647 r729 92 92 # overall heading 93 93 grid [frame $frame.head] \ 94 -row 0 -col 0 -columnspan 99 -sticky ew94 -row 0 -column 0 -columnspan 99 -sticky ew 95 95 grid [label $frame.head.l -textvariable CIFselect(boxhead)\ 96 96 -anchor center] \ 97 -row 0 -col 0 -sticky ew97 -row 0 -column 0 -sticky ew 98 98 set CIFselect(boxhead) "Select an atom for distance and angle display" 99 99 grid columnconfigure $frame.head 0 -weight 1 -pad 10 … … 119 119 "Distances and angles around atom [labelatom $phase $atom]" 120 120 121 grid [frame $frame.a] -row 1 -col 0 -columnspan 99121 grid [frame $frame.a] -row 1 -column 0 -columnspan 99 122 122 foreach {tbox bbox sbox cbox} [MakeScrollTable $frame.a] {} 123 123 [winfo parent $bbox] config -width 550 -height 300 … … 126 126 set row 0 127 127 grid [label $tbox.$row-2 -text distance \ 128 -width $width] -row $row -col 2128 -width $width] -row $row -column 2 129 129 set col 3 130 130 foreach l $alist { … … 133 133 incr col 134 134 grid [label $tbox.$row-$col -text [labelatom $phase $l] \ 135 -width $width] -row $row -col $col135 -width $width] -row $row -column $col 136 136 incr col 137 137 } … … 144 144 set col 0 145 145 grid [label $sbox.$row-l -text [labelatom $phase $l]] \ 146 -row $row -col $col146 -row $row -column $col 147 147 incr col 2 148 148 set dist [eval formatSU $disarr(${phase}P${atom}:$l)] 149 149 grid [label $bbox.$row-d -text $dist -width $width] \ 150 -row $row -col $col -sticky ew150 -row $row -column $col -sticky ew 151 151 ColorWidget $bbox.$row-d $disflag(${phase}P${atom}:$l) 152 152 set widget($bbox.$row-d) ${phase}P${atom}:$l … … 166 166 incr col 2 167 167 grid [label $bbox.$row-$col -text $atxt -width $width] \ 168 -row $row -col $col -sticky ew168 -row $row -column $col -sticky ew 169 169 ColorWidget $bbox.$row-$col $angflag($index) 170 170 set widget($bbox.$row-$col) $index … … 180 180 set col 0 181 181 grid [label $sbox.$row-l -text [labelatom $phase $l]] \ 182 -row $row -col $col182 -row $row -column $col 183 183 set dist [eval formatSU $disarr(${phase}P${atom}:$l)] 184 184 incr col 2 185 185 grid [label $bbox.$row-d -text $dist -width $width] \ 186 -row $row -col $col -sticky ew186 -row $row -column $col -sticky ew 187 187 ColorWidget $bbox.$row-d $disflag(${phase}P${atom}:$l) 188 188 set widget($bbox.$row-d) ${phase}P${atom}:$l … … 530 530 bind $top <Key-F1> "MakeWWWHelp gsas2cif.html cifselect" 531 531 532 grid [frame $top.mode -bd 4 -relief groove] -row 1 -col 1 -sticky news532 grid [frame $top.mode -bd 4 -relief groove] -row 1 -column 1 -sticky news 533 533 grid [label $top.mode.l -text "Response to Mouse click:"] \ 534 -row 1 -col 0 -columnspan 99534 -row 1 -column 0 -columnspan 99 535 535 set col 1 536 536 foreach val {Toggle Set Clear} { 537 537 grid [radiobutton $top.mode.r$col -text $val \ 538 538 -variable CIFselect(click) \ 539 -value [string tolower $val]] -row 2 -col $col539 -value [string tolower $val]] -row 2 -column $col 540 540 incr col 541 541 } 542 542 543 grid [frame $top.sel -bd 4 -relief groove] -row 2 -col 1 -sticky news543 grid [frame $top.sel -bd 4 -relief groove] -row 2 -column 1 -sticky news 544 544 grid [label $top.sel.l -text "Distance selection: select matching angles?"] \ 545 -row 1 -col 1 -columnspan 3545 -row 1 -column 1 -columnspan 3 546 546 set col 1 547 547 foreach val {Yes No} { 548 548 grid [radiobutton $top.sel.r$col -text $val \ 549 549 -variable CIFselect(select) \ 550 -value [string tolower $val]] -row 2 -col $col550 -value [string tolower $val]] -row 2 -column $col 551 551 incr col 552 552 } 553 553 554 grid [frame $top.ph -bd 4 -relief groove] -row 1 -col 0 -sticky news555 grid [label $top.ph.h -text "Select phase"] -row 1 -col 0 -columnspan 99554 grid [frame $top.ph -bd 4 -relief groove] -row 1 -column 0 -sticky news 555 grid [label $top.ph.h -text "Select phase"] -row 1 -column 0 -columnspan 99 556 556 set col 0 557 557 foreach phase $expmap(phaselist) { … … 559 559 -variable CIFselect(phase) \ 560 560 -command SelectPhase \ 561 -value $phase] -row 2 -col $col561 -value $phase] -row 2 -column $col 562 562 incr col 563 563 } … … 566 566 567 567 grid [frame $top.atom -bd 4 -relief groove] \ 568 -row 2 -rowspan 2 -col 0 -sticky news569 grid [label $top.atom.h -text "Select atom"] -row 1 -col 0 -columnspan 99568 -row 2 -rowspan 2 -column 0 -sticky news 569 grid [label $top.atom.h -text "Select atom"] -row 1 -column 0 -columnspan 99 570 570 set CIFselect(atomlist) $top.atom.lbox 571 571 grid columnconfigure $top.atom 0 -weight 1 … … 578 578 bind $top.atom.lbox <<ListboxSelect>> SelectAtom 579 579 580 grid [frame $top.bt] -row 3 -col 1 -sticky news580 grid [frame $top.bt] -row 3 -column 1 -sticky news 581 581 button $top.bt.save -command "SaveFlags $expnam" -text Save 582 582 button $top.bt.export -command ExportDistAngMatrix -text "Export Tables"
Note: See TracChangeset
for help on using the changeset viewer.