Changeset 21beb26 in tol for tolbase/lib/toltk
- Timestamp:
- Dec 30, 2011, 8:43:56 PM (15 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 09b79f5
- Parents:
- 543fdce
- File:
-
- 1 edited
-
tolbase/lib/toltk/tolconfig_gui.tcl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tolbase/lib/toltk/tolconfig_gui.tcl
r543fdce r21beb26 1 package require BWidget 1 2 package require wtree 3 package require msgcat 2 4 3 5 namespace eval ::TolConfigGUI { … … 60 62 proc ::TolConfigGUI::FillTreeConfig { } { 61 63 variable win 64 variable tree 62 65 variable treeInfo 63 66 64 67 array unset treeInfo 65 68 set treeInfo(node,) root 69 $tree item delete all 66 70 FillTree TolConfigManager::Config "" [ ::TolConfig::GetConfig ] 67 71 72 } 73 74 proc ::TolConfigGUI::AcceptConfig { } { 75 puts AcceptConfig 68 76 } 69 77 … … 73 81 74 82 set win .tolconfig 75 76 if { [ winfo exists $win ] } { 77 raise $win 78 } else { 79 toplevel $win 80 wm state $win withdrawn 81 set tree $win.tree 83 if { ![ winfo exists $win ] } { 84 Dialog $win -title [ mc "Tol configuration"] \ 85 -modal local 86 $win add -text Ok 87 $win add -text Cancel 88 89 set f [ $win getframe ] 90 grid rowconfigure $f 0 -weight 1 91 grid columnconfigure $f 0 -weight 1 92 set tree $f.tree 82 93 wtree $tree 83 94 $tree configure -table no -filter yes -columns { … … 85 96 { {text} -tags STATUS -label "Value" -editable yes } 86 97 } 87 grid $tree -row 1-column 0 -sticky "snew"98 grid $tree -row 0 -column 0 -sticky "snew" 88 99 grid rowconfigure $win 1 -weight 1 89 100 grid columnconfigure $win 0 -weight 1 90 FillTreeConfig 91 wm state $win normal 101 } 102 FillTreeConfig 103 set ans [ $win draw ] 104 if { $ans == 0 } { 105 AcceptConfig 92 106 } 93 107 }
Note: See TracChangeset
for help on using the changeset viewer.
