summaryrefslogtreecommitdiffstats
path: root/library/demos/label.tcl
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2009-02-11 15:17:08 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2009-02-11 15:17:08 (GMT)
commit268cab3d247deaabe130d87d6869a8e2d222cf7a (patch)
tree31e87d9de38d80f60494b3c1f7300e75bda0ba53 /library/demos/label.tcl
parent1aed94c9ad7ed6440eb8d1d3404b28d7368738eb (diff)
downloadtk-268cab3d247deaabe130d87d6869a8e2d222cf7a.zip
tk-268cab3d247deaabe130d87d6869a8e2d222cf7a.tar.gz
tk-268cab3d247deaabe130d87d6869a8e2d222cf7a.tar.bz2
Use a color picture of JO for better GOOBE. [Bug 2588919]
Diffstat (limited to 'library/demos/label.tcl')
-rw-r--r--library/demos/label.tcl11
1 files changed, 6 insertions, 5 deletions
diff --git a/library/demos/label.tcl b/library/demos/label.tcl
index cb26e6d..a42753a 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.6 2004/12/21 11:56:35 dkf Exp $
+# RCS: @(#) $Id: label.tcl,v 1.7 2009/02/11 15:17:26 dkf Exp $
if {![info exists widgetDemo]} {
error "This script should be run from the \"widget\" demo."
@@ -35,7 +35,8 @@ 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_demoDirectory images face.xbm]
-label $w.right.caption -text "Tcl/Tk Proprietor"
-pack $w.right.bitmap $w.right.caption -side top
+image create photo label.ousterhout \
+ -file [file join $tk_demoDirectory images ouster.png]
+label $w.right.picture -borderwidth 2 -relief sunken -image label.ousterhout
+label $w.right.caption -text "Tcl/Tk Creator"
+pack $w.right.picture $w.right.caption -side top