summaryrefslogtreecommitdiffstats
path: root/library/demos/arrow.tcl
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2003-11-03 15:30:45 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2003-11-03 15:30:45 (GMT)
commitc0164ce633713cc59b867c0a5b713be33fa51593 (patch)
tree85e4cc9231f1d3d491a3a13dfe56c421c2572707 /library/demos/arrow.tcl
parent2850c445d0a092a29a4bb8fc7872bdf1b8e77013 (diff)
downloadtk-c0164ce633713cc59b867c0a5b713be33fa51593.zip
tk-c0164ce633713cc59b867c0a5b713be33fa51593.tar.gz
tk-c0164ce633713cc59b867c0a5b713be33fa51593.tar.bz2
Make demo location independent of main Tk library location. [Patch 832691]
Diffstat (limited to 'library/demos/arrow.tcl')
-rw-r--r--library/demos/arrow.tcl6
1 files changed, 3 insertions, 3 deletions
diff --git a/library/demos/arrow.tcl b/library/demos/arrow.tcl
index b8d33ee..b41c11f 100644
--- a/library/demos/arrow.tcl
+++ b/library/demos/arrow.tcl
@@ -3,7 +3,7 @@
# This demonstration script creates a canvas widget that displays a
# large line with an arrowhead whose shape can be edited interactively.
#
-# RCS: @(#) $Id: arrow.tcl,v 1.4 2003/08/20 23:02:18 hobbs Exp $
+# RCS: @(#) $Id: arrow.tcl,v 1.5 2003/11/03 15:31:18 dkf Exp $
if {![info exists widgetDemo]} {
error "This script should be run from the \"widget\" demo."
@@ -107,7 +107,6 @@ proc arrowSetup c {
}
set w .arrow
-global tk_library
catch {destroy $w}
toplevel $w
wm title $w "Arrowhead Editor Demonstration"
@@ -140,8 +139,9 @@ if {[winfo depth $c] > 1} {
set demo_arrowInfo(boxStyle) "-fill {} -outline black -width 1"
set demo_arrowInfo(activeStyle) "-fill red -outline black -width 1"
} else {
+ # Main widget program sets variable tk_demoDirectory
set demo_arrowInfo(bigLineStyle) "-fill black \
- -stipple @[file join $tk_library demos images grey.25]"
+ -stipple @[file join $tk_demoDirectory images grey.25]"
set demo_arrowInfo(boxStyle) "-fill {} -outline black -width 1"
set demo_arrowInfo(activeStyle) "-fill black -outline black -width 1"
}