Changeset 8 for trunk/gui/apps
- Timestamp:
- Apr 2, 2005, 9:33:16 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/apps/driver
r7 r8 128 128 # build everything inside this main window 129 129 set win [.main component app] 130 $win configure -background #a6a6a6130 #$win configure -background #a6a6a6 131 131 132 132 frame $win.input -borderwidth 12 -relief flat … … 137 137 138 138 # make an arrow that goes from input to output side 139 label $win.arrow -borderwidth 0 -image in2out140 place $win.arrow -y 2 -anchor n141 bind $win.input <Configure> [list align_arrow $win]142 proc align_arrow {win} {143 place $win.arrow -x [expr {[winfo width $win.input]+5}]144 }139 #label $win.arrow -borderwidth 0 -image in2out 140 #place $win.arrow -y 2 -anchor n 141 #bind $win.input <Configure> [list align_arrow $win] 142 #proc align_arrow {win} { 143 # place $win.arrow -x [expr {[winfo width $win.input]+5}] 144 #} 145 145 146 146 # ---------------------------------------------------------------------- … … 150 150 set dfirst "" 151 151 set dlist [$config children -type structure controls] 152 puts "device: $dlist"153 152 if {"" != $dlist} { 154 153 foreach dname $dlist { 155 154 set obj [$config element -flavor object controls.$dname] 156 155 set name [$obj get label] 157 puts " => $name = $obj"158 156 set devs($name) $obj 159 157 } … … 177 175 set first [lindex $devlist 0] 178 176 set dfirst $devs($first) 179 set tags [$dfirst children ]177 set tags [$dfirst children components] 180 178 set i [lsearch $tags label] 181 179 if {$i >= 0} {set tags [lreplace $tags $i $i]} 182 180 183 puts "first device: tags = $tags"184 181 if {$tags == "molecule"} { 185 182 Rappture::MoleculeViewer $w.device -device $devs($first) \
Note: See TracChangeset
for help on using the changeset viewer.