Changeset 3c80442 in tol


Ignore:
Timestamp:
Jan 13, 2010, 12:22:30 PM (17 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
a809fc1
Parents:
d6c5434
Message:

refs #838 : selection is returned as indexes

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@1966 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol_pkg/GuiTools/MultiDimSelect.tcl

    rd6c5434 r3c80442  
    115115    puts "getChecked, info : $info"
    116116    set result [ list ]
     117    set idx 1
    117118    foreach r $info {
    118119      if { [ lindex $r 0 ] } {
    119         lappend result [ lindex $r 1 ]
    120       }
     120        lappend result $idx
     121      }
     122      incr idx
    121123    }
    122124    set result
    … …  
    134136  option -addr -readonly yes -validatemethod _checkAddr
    135137
    136   typemethod _invokeButton { obj_addr method dims } {
     138  method _invokeButton { method dims } {
     139    set addr $options(-addr)
     140    puts "_invokeButton $addr $method $dims"
    137141    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 ] {
    139143        NameBlock __aux_instance__ = GetObjectFromAddress("%A");
    140144        Real __aux_result__ = __aux_instance__::%M(%D)
    … …  
    238242      }
    239243    }
    240     $type _invokeButton $options(-addr) $met "SetOfSet([ join $level1 , ])"
     244    $self _invokeButton $met "SetOfSet([ join $level1 , ])"
    241245    if { $ex } {
    242246      after idle destroy $win
    … …  
    345349
    346350proc ShowDimSelector { addr } {
     351  puts "ShowDimSelector $addr"
    347352  DimSelector .dimsel -addr $addr -geometry 200x200 -parent .
     353  puts "[ .dimsel cget -addr]"
    348354  set result [ .dimsel draw ]
    349355  puts "sali con $result"
Note: See TracChangeset for help on using the changeset viewer.