Changeset 2080 for trunk/tester/testtree.tcl
- Timestamp:
- Feb 2, 2011 4:51:29 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tester/testtree.tcl
r2077 r2080 225 225 Pass { set data(result) "@[Rappture::icon pass16]" } 226 226 Fail { set data(result) "@[Rappture::icon fail16]" } 227 Waiting { set data(result) "@[Rappture::icon wait ]" }227 Waiting { set data(result) "@[Rappture::icon wait16]" } 228 228 Running { set data(result) "@[spinner use]" } 229 229 default { set data(result) "" } … … 231 231 puts "ICON: $data(result)" 232 232 $itk_component(treeview) entry configure $n -data [array get data] 233 234 # if the node that's changed is selected, invoke the 235 # -selectcommand code so the GUI will react to the new state 236 if {[$itk_component(treeview) selection includes $n]} { 237 set cmd [$itk_component(treeview) cget -selectcommand] 238 if {[string length $cmd] > 0} { 239 uplevel #0 $cmd 240 } 241 } 233 242 } 234 243 }
Note: See TracChangeset
for help on using the changeset viewer.