X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-test.git;a=blobdiff_plain;f=yarrg%2Fpantest.tcl;h=e864d0bd722130fc800bdcff64f0ed28b384217a;hp=b13326e9c3bd1a604fd7283824891644e3d1162d;hb=66b7b921f50bc3242a7e45a63a94391bcebf7cb9;hpb=a886cd415dfc89ea1f563b1517b6a0ddebdcc4c3 diff --git a/yarrg/pantest.tcl b/yarrg/pantest.tcl index b13326e..e864d0b 100755 --- a/yarrg/pantest.tcl +++ b/yarrg/pantest.tcl @@ -1,7 +1,12 @@ #!/usr/bin/wish -source panner.tcl -namespace import panner::* +pkg_mkIndex . +set auto_path [concat . $auto_path] + +#source panner.tcl +#namespace import panner::* + +package require panner set scale 50 @@ -12,8 +17,8 @@ for {set x -$scale} {$x < 500} {incr x $scale} { } } -canvas-scroll-bbox .c -panner-create .p .c 200 200 1 +panner::canvas-scroll-bbox .c +panner::create .p .c 200 200 1 pack .p -side right pack .c -expand y -fill both -side left