Changeset 9cd63c3 in tol for tolbase/lib/wtree


Ignore:
Timestamp:
Mar 11, 2012, 9:49:36 PM (15 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
113bff8
Parents:
e71f0a2
Message:

refs #1443, metodo para forzar que se acepten/rechacen los cambios que se estan editando

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tolbase/lib/wtree/wtree.tcl

    re71f0a2 r9cd63c3  
    387387  }
    388388 
     389  method AcceptEdit { } {
     390    ::TreeCtrl::EditClose $tree entry 1 0
     391  }
     392
     393  method CancelEdit { } {
     394    ::TreeCtrl::EditClose $tree entry 0 0
     395  }
     396
    389397  method getItemText { item } {
    390398    set itemText ""
    … …  
    10341042                               { {image text} -tags ID   -label Identifier } \
    10351043                               { text -tags DESC -label Description -editable yes} ] ]
    1036     grid $T -row 1 -column 0 -sticky "snew"
     1044    grid $T -row 0 -column 0 -sticky "snew"
     1045    button $w.btn1 -text "OK" \
     1046        -command [ string map [ list "%T" $T ] {
     1047          %T AcceptEdit
     1048        } ]
     1049    button $w.btn2 -text "Cancel" \
     1050        -command [ string map [ list "%T" $T ] {
     1051          %T CancelEdit
     1052        } ]
     1053    grid $w.btn1 -row 1 -column 0
     1054    grid $w.btn2 -row 1 -column 1
    10371055    grid rowconfigure $w 1 -weight 1
    1038     grid columnconfigure $w 0 -weight 1
     1056    grid columnconfigure $w 0 -weight 1 
    10391057   
    10401058    for { set r 0 } { $r < 100 } { incr r } {
Note: See TracChangeset for help on using the changeset viewer.