Changeset 3c80442 in tol
- Timestamp:
- Jan 13, 2010, 12:22:30 PM (17 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- a809fc1
- Parents:
- d6c5434
- File:
-
- 1 edited
-
tol_pkg/GuiTools/MultiDimSelect.tcl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol_pkg/GuiTools/MultiDimSelect.tcl
rd6c5434 r3c80442 115 115 puts "getChecked, info : $info" 116 116 set result [ list ] 117 set idx 1 117 118 foreach r $info { 118 119 if { [ lindex $r 0 ] } { 119 lappend result [ lindex $r 1 ] 120 } 120 lappend result $idx 121 } 122 incr idx 121 123 } 122 124 set result … … 134 136 option -addr -readonly yes -validatemethod _checkAddr 135 137 136 typemethod _invokeButton { obj_addr method dims } { 138 method _invokeButton { method dims } { 139 set addr $options(-addr) 140 puts "_invokeButton $addr $method $dims" 137 141 set try [ catch { 138 tol::console eval [ string map [ list %A $ obj_addr %M $method %D $dims ] {142 tol::console eval [ string map [ list %A $addr %M $method %D $dims ] { 139 143 NameBlock __aux_instance__ = GetObjectFromAddress("%A"); 140 144 Real __aux_result__ = __aux_instance__::%M(%D) … … 238 242 } 239 243 } 240 $ type _invokeButton $options(-addr)$met "SetOfSet([ join $level1 , ])"244 $self _invokeButton $met "SetOfSet([ join $level1 , ])" 241 245 if { $ex } { 242 246 after idle destroy $win … … 345 349 346 350 proc ShowDimSelector { addr } { 351 puts "ShowDimSelector $addr" 347 352 DimSelector .dimsel -addr $addr -geometry 200x200 -parent . 353 puts "[ .dimsel cget -addr]" 348 354 set result [ .dimsel draw ] 349 355 puts "sali con $result"
Note: See TracChangeset
for help on using the changeset viewer.
