summaryrefslogtreecommitdiffstats
path: root/library/demos
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-04 09:27:21 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-10-04 09:27:21 (GMT)
commit94d80d3e248cdbdddfbb76b7070abdfaaa5a8648 (patch)
tree26610a20969bd5b4fa95c33048469099780d9d26 /library/demos
parent9840be13ed8bf8995b4969c0d99d82f3f1c93357 (diff)
downloadtk-94d80d3e248cdbdddfbb76b7070abdfaaa5a8648.zip
tk-94d80d3e248cdbdddfbb76b7070abdfaaa5a8648.tar.gz
tk-94d80d3e248cdbdddfbb76b7070abdfaaa5a8648.tar.bz2
Remove DEF_CANVLINE_FILL/DEF_CANVTEXT_FILL, since the default fill value (according the documentation) is {}. This has no visible effect.
Modify canvas items demo, so it can be run on wish8.5 (for visual comparison)
Diffstat (limited to 'library/demos')
-rw-r--r--library/demos/items.tcl6
1 files changed, 5 insertions, 1 deletions
diff --git a/library/demos/items.tcl b/library/demos/items.tcl
index 7f28f2f..bf54a89 100644
--- a/library/demos/items.tcl
+++ b/library/demos/items.tcl
@@ -126,8 +126,10 @@ $c create text 25.5c 11c -anchor w -font $font1 -fill $blue \
-text "Several lines,\n each centered\nindividually,\nand all anchored\nat the left edge." \
-justify center -tags item
$c create rectangle 24.9c 13.9c 25.1c 14.1c
+catch {
$c create text 25c 14c -font $font2 -anchor c -fill $red -angle 15 \
-text "Angled characters" -tags item
+}
$c create text 5c 16.2c -text Arcs -anchor n
$c create arc 0.5c 17c 7c 20c -fill $green -outline black \
@@ -140,13 +142,15 @@ $c create arc 0.5c 20c 9.5c 24c -width 4m -style pieslice \
$c create arc 5.5c 20.5c 9.5c 23.5c -width 4m -style chord \
-fill $blue -outline {} -start 45 -extent 270 -tags item
+$c create text 15c 16.2c -text "Bitmaps and Images" -anchor n
+catch {
image create photo items.ousterhout \
-file [file join $tk_demoDirectory images ouster.png]
image create photo items.ousterhout.active -format "png -alpha 0.5" \
-file [file join $tk_demoDirectory images ouster.png]
-$c create text 15c 16.2c -text "Bitmaps and Images" -anchor n
$c create image 13c 20c -tags item -image items.ousterhout \
-activeimage items.ousterhout.active
+}
$c create bitmap 17c 18.5c -tags item \
-bitmap @[file join $tk_demoDirectory images noletter.xbm]
$c create bitmap 17c 21.5c -tags item \