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/label.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/label.tcl')
-rw-r--r-- | library/demos/label.tcl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/library/demos/label.tcl b/library/demos/label.tcl index 3d31538..d526334 100644 --- a/library/demos/label.tcl +++ b/library/demos/label.tcl @@ -3,7 +3,7 @@ # This demonstration script creates a toplevel window containing # several label widgets. # -# RCS: @(#) $Id: label.tcl,v 1.3 2003/08/20 23:02:18 hobbs Exp $ +# RCS: @(#) $Id: label.tcl,v 1.4 2003/11/03 15:31:18 dkf Exp $ if {![info exists widgetDemo]} { error "This script should be run from the \"widget\" demo." @@ -32,7 +32,8 @@ label $w.left.l2 -text "Second label, raised" -relief raised label $w.left.l3 -text "Third label, sunken" -relief sunken pack $w.left.l1 $w.left.l2 $w.left.l3 -side top -expand yes -pady 2 -anchor w +# Main widget program sets variable tk_demoDirectory label $w.right.bitmap -borderwidth 2 -relief sunken \ - -bitmap @[file join $tk_library demos images face.bmp] + -bitmap @[file join $tk_demoDirectory images face.bmp] label $w.right.caption -text "Tcl/Tk Proprietor" pack $w.right.bitmap $w.right.caption -side top |