summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2019-10-04 14:00:50 (GMT)
committerdgp <dgp@users.sourceforge.net>2019-10-04 14:00:50 (GMT)
commit832759909343ec3f4abed28831d8273aa20b4d29 (patch)
tree2991496356b2d6de21d618091a435f1fd3a1eb16 /library
parent0c21b174dd420f5b2dc9c842828114706b001232 (diff)
parent271b2253102a315cd4aa422f7ee6bbe53c370b35 (diff)
downloadtk-832759909343ec3f4abed28831d8273aa20b4d29.zip
tk-832759909343ec3f4abed28831d8273aa20b4d29.tar.gz
tk-832759909343ec3f4abed28831d8273aa20b4d29.tar.bz2
merge 8.6core-8-6-10
Diffstat (limited to 'library')
-rw-r--r--library/demos/items.tcl8
1 files changed, 6 insertions, 2 deletions
diff --git a/library/demos/items.tcl b/library/demos/items.tcl
index 7f28f2f..aca37c2 100644
--- a/library/demos/items.tcl
+++ b/library/demos/items.tcl
@@ -94,7 +94,7 @@ $c create line 12c 6c 13.5c 4.5c 16.5c 7.5c 18c 6c \
$c create text 25c .2c -text Polygons -anchor n
$c create polygon 21c 1.0c 22.5c 1.75c 24c 1.0c 23.25c 2.5c \
- 24c 4.0c 22.5c 3.25c 21c 4.0c 21.75c 2.5c -fill $green \
+ 24c 4.0c 22.5c 3.25c 21c 4.0c 21.75c 2.5c -outline $green \
-width 4 -tags item
$c create polygon 25c 4c 25c 4c 25c 1c 26c 1c 27c 4c 28c 1c \
29c 1c 29c 4c 29c 4c -fill $red -outline {} -smooth on -tags item
@@ -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 \