diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2003-11-03 15:30:45 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2003-11-03 15:30:45 (GMT) |
commit | c0164ce633713cc59b867c0a5b713be33fa51593 (patch) | |
tree | 85e4cc9231f1d3d491a3a13dfe56c421c2572707 /library/demos/floor.tcl | |
parent | 2850c445d0a092a29a4bb8fc7872bdf1b8e77013 (diff) | |
download | tk-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/floor.tcl')
-rw-r--r-- | library/demos/floor.tcl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/demos/floor.tcl b/library/demos/floor.tcl index e9c0a83..3bd0f7a 100644 --- a/library/demos/floor.tcl +++ b/library/demos/floor.tcl @@ -3,7 +3,7 @@ # This demonstration script creates a canvas widet that displays the # floorplan for DEC's Western Research Laboratory. # -# RCS: @(#) $Id: floor.tcl,v 1.4 2003/08/20 23:02:18 hobbs Exp $ +# RCS: @(#) $Id: floor.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." @@ -1290,7 +1290,7 @@ proc fg3 {w color} { # Below is the "main program" that creates the floorplan demonstration. set w .floor -global c tk_library currentRoom colors activeFloor +global c currentRoom colors activeFloor catch {destroy $w} toplevel $w wm title $w "Floorplan Canvas Demonstration" |