Changeset 553
- Timestamp:
- Dec 4, 2009 5:08:06 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/addcmds.tcl
- Property rcs:date changed from 2002/01/22 22:10:48 to 2002/01/23 20:53:36
- Property rcs:lines changed from +82 -99 to +24 -11
- Property rcs:rev changed from 1.27 to 1.28
r536 r553 67 67 -command "ImportPhase \$expgui(importFormat) $np"] \ 68 68 -column 0 -row 0 -sticky e 69 eval tk_optionMenu $np.bf.fr.b4 expgui(importFormat) \ 70 $expgui(importFormatList) 69 set menu [eval tk_optionMenu $np.bf.fr.b4 expgui(importFormat) \ 70 $expgui(importFormatList)] 71 for {set i 0} {$i <= [$menu index end]} {incr i} { 72 $menu entryconfig $i -command "ImportPhase \$expgui(importFormat) $np" 73 } 71 74 grid $np.bf.fr.b4 -column 1 -row 0 -sticky w 72 75 grid rowconfig $np.bf.fr 0 -pad 10 … … 1046 1049 -command "ImportAtoms \$expgui(importFormat) $top $phase"] \ 1047 1050 -column 0 -row 0 -sticky e 1048 eval tk_optionMenu $top.fr.b4 expgui(importFormat) \ 1049 $expgui(importFormatList) 1051 set menu [eval tk_optionMenu $top.fr.b4 expgui(importFormat) \ 1052 $expgui(importFormatList)] 1053 for {set i 0} {$i <= [$menu index end]} {incr i} { 1054 $menu entryconfig $i -command "ImportAtoms \$expgui(importFormat) $top $phase" 1055 } 1050 1056 grid $top.fr.b4 -column 1 -row 0 -sticky w 1051 1057 grid rowconfig $top.fr 0 -pad 10 … … 1119 1125 # Validate the atoms in the atoms add/phase replace box 1120 1126 # returns a null string on error or a list of atoms 1121 proc ValidateAtomsBox {np} { 1127 proc ValidateAtomsBox {top np} { 1128 global expgui 1122 1129 set row 0 1123 1130 # loop over the defined rows … … 1194 1201 # validate the atoms info 1195 1202 set atomlist [ValidateAtomsBox $top $np] 1196 if {$atom slist == ""} return1203 if {$atomlist == ""} return 1197 1204 1198 1205 # ok add the atoms! … … 1667 1674 -command "ImportPhase \$expgui(importFormat) $top"] \ 1668 1675 -column 0 -row 0 -sticky e 1669 eval tk_optionMenu $top.fr.b4 expgui(importFormat) \ 1670 $expgui(importFormatList) 1676 set menu [eval tk_optionMenu $top.fr.b4 expgui(importFormat) \ 1677 $expgui(importFormatList)] 1678 for {set i 0} {$i <= [$menu index end]} {incr i} { 1679 $menu entryconfig $i -command "ImportPhase \$expgui(importFormat) $np" 1680 } 1671 1681 grid $top.fr.b4 -column 1 -row 0 -sticky w 1672 1682 grid rowconfig $top.fr 0 -pad 10 … … 1832 1842 -command "ImportAtoms \$expgui(importFormat) $top $phase"] \ 1833 1843 -column 0 -row 0 -sticky e 1834 eval tk_optionMenu $top.fr.b4 expgui(importFormat) \ 1835 $expgui(importFormatList) 1844 set menu [eval tk_optionMenu $top.fr.b4 expgui(importFormat) \ 1845 $expgui(importFormatList)] 1846 for {set i 0} {$i <= [$menu index end]} {incr i} { 1847 $menu entryconfig $i -command "ImportAtoms \$expgui(importFormat) $top $phase" 1848 } 1836 1849 grid $top.fr.b4 -column 1 -row 0 -sticky w 1837 1850 grid rowconfig $top.fr 0 -pad 10 … … 1859 1872 # validate the atoms info 1860 1873 set atomlist [ValidateAtomsBox $top $np] 1861 if {$atom slist == ""} return1874 if {$atomlist == ""} return 1862 1875 1863 1876 pleasewait "updating phase"
Note: See TracChangeset
for help on using the changeset viewer.