Index: doc/example-scripts/tk-horse-race.tcl =================================================================== diff -u -N -r31e9b2929718e014fbbad009eb69af6dff0c120a -r71e18053ef7dd9a53f11d14f3a91b8a1091e90bb --- doc/example-scripts/tk-horse-race.tcl (.../tk-horse-race.tcl) (revision 31e9b2929718e014fbbad009eb69af6dff0c120a) +++ doc/example-scripts/tk-horse-race.tcl (.../tk-horse-race.tcl) (revision 71e18053ef7dd9a53f11d14f3a91b8a1091e90bb) @@ -13,7 +13,7 @@ # Some list utilities, not part of a package we can require here. ############################################################################## - nx::Trait create ::nx::traits::listUtils { + nx::Trait create ::nx::trait::listUtils { :protected method lpick {list} { # return a random entry from a given list @@ -41,8 +41,8 @@ :property canvas:required ;# the canvas, on which the horse is drawn :property n:integer,required ;# the position on the canvas - :require trait nx::traits::callback - :require trait nx::traits::listUtils + :require trait nx::trait::callback + :require trait nx::trait::listUtils :method draw {x y} { set hide [:lpick {black brown white gray brown3 brown4}] @@ -80,8 +80,8 @@ :property {height 330} ;# height of the canvas :property {horses} ;# a list of horse names participating in the game - :require trait nx::traits::callback - :require trait nx::traits::listUtils + :require trait nx::trait::callback + :require trait nx::trait::listUtils :method init {} { #