summaryrefslogtreecommitdiffstats
path: root/library/demos/puzzle.tcl
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-12-21 11:56:33 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-12-21 11:56:33 (GMT)
commitcefdeb10a9e61b1c6f1e9af3c0ebb81fe7d63954 (patch)
treeb442311b6c9606c231210e4949b982d7751a67ae /library/demos/puzzle.tcl
parentbd53faa3e283f4872d2c66306c8127944c0b19df (diff)
downloadtk-cefdeb10a9e61b1c6f1e9af3c0ebb81fe7d63954.zip
tk-cefdeb10a9e61b1c6f1e9af3c0ebb81fe7d63954.tar.gz
tk-cefdeb10a9e61b1c6f1e9af3c0ebb81fe7d63954.tar.bz2
Coding style improvements for the widget demo. [FRQ 815118]
Diffstat (limited to 'library/demos/puzzle.tcl')
-rw-r--r--library/demos/puzzle.tcl4
1 files changed, 3 insertions, 1 deletions
diff --git a/library/demos/puzzle.tcl b/library/demos/puzzle.tcl
index 61d8a80..8b1a888 100644
--- a/library/demos/puzzle.tcl
+++ b/library/demos/puzzle.tcl
@@ -3,12 +3,14 @@
# This demonstration script creates a 15-puzzle game using a collection
# of buttons.
#
-# RCS: @(#) $Id: puzzle.tcl,v 1.5 2003/08/20 23:02:18 hobbs Exp $
+# RCS: @(#) $Id: puzzle.tcl,v 1.6 2004/12/21 11:56:35 dkf Exp $
if {![info exists widgetDemo]} {
error "This script should be run from the \"widget\" demo."
}
+package require Tk
+
# puzzleSwitch --
# This procedure is invoked when the user clicks on a particular button;
# if the button is next to the empty space, it moves the button into th