diff options
Diffstat (limited to 'tests/canvPsImg.tcl')
-rw-r--r-- | tests/canvPsImg.tcl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/canvPsImg.tcl b/tests/canvPsImg.tcl index e36cecb..73b854f 100644 --- a/tests/canvPsImg.tcl +++ b/tests/canvPsImg.tcl @@ -2,7 +2,7 @@ # for images in canvases. It is part of the Tk visual test suite, # which is invoked via the "visual" script. # -# RCS: @(#) $Id: canvPsImg.tcl,v 1.3 2004/10/19 15:25:08 dkf Exp $ +# RCS: @(#) $Id: canvPsImg.tcl,v 1.4 2005/10/12 09:29:21 dkf Exp $ # Build a test image in a canvas proc BuildTestImage {} { @@ -69,9 +69,11 @@ foreach l { monochrome gray color } { pack .t.$l -in .t.top.r -anchor w } -set BitmapImage [image create bitmap -file $tk_library/demos/images/face.xbm \ +set BitmapImage [image create bitmap \ + -file [file join [file dirname [info script]] face.xbm] \ -background white -foreground black] -set PhotoImage [image create photo -file $tk_library/demos/images/teapot.ppm] +set PhotoImage [image create photo \ + -file [file join [file dirname [info script]] teapot.ppm]] BuildTestImage |