Changeset 9cd63c3 in tol for tolbase/lib/wtree/wtree.tcl
- Timestamp:
- Mar 11, 2012, 9:49:36 PM (15 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 113bff8
- Parents:
- e71f0a2
- File:
-
- 1 edited
-
tolbase/lib/wtree/wtree.tcl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/wtree/wtree.tcl
re71f0a2 r9cd63c3 387 387 } 388 388 389 method AcceptEdit { } { 390 ::TreeCtrl::EditClose $tree entry 1 0 391 } 392 393 method CancelEdit { } { 394 ::TreeCtrl::EditClose $tree entry 0 0 395 } 396 389 397 method getItemText { item } { 390 398 set itemText "" … … 1034 1042 { {image text} -tags ID -label Identifier } \ 1035 1043 { 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 1037 1055 grid rowconfigure $w 1 -weight 1 1038 grid columnconfigure $w 0 -weight 1 1056 grid columnconfigure $w 0 -weight 1 1039 1057 1040 1058 for { set r 0 } { $r < 100 } { incr r } {
Note: See TracChangeset
for help on using the changeset viewer.
