Skip to content

Commit 5be84f9

Browse files
committed
Revise dragger.tcl demo to use photo shape source
1 parent 4e1b957 commit 5be84f9

File tree

3 files changed

+1
-16
lines changed

3 files changed

+1
-16
lines changed

demos/dragger.tcl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ image create photo redptr -file [file join $images ptr-red.gif]
4848
image create photo greenptr -file [file join $images ptr-green.gif]
4949
image create photo doc -file [file join $images doc-img.gif]
5050
set ptrxbm @[file join $images ptr-mask.xbm]
51-
set docxbm @[file join $images doc-mask.xbm]
5251

5352
pack [label .l -justify l -text "Drag off this window to see a coloured\
5453
cursor\n(implemented using a canvas and the non-rectangular\nwindow\
@@ -67,7 +66,7 @@ set image(doc) [.cursor.workarea create image 3 4 \
6766
#pack [label .cursor.ptr -bd 0 -image greenptr]
6867
update idletasks
6968
shape set .cursor.workarea -offset 0 0 bitmap $ptrxbm
70-
shape upd .cursor.workarea + -offset 3 4 bitmap $docxbm
69+
shape upd .cursor.workarea + -offset 3 4 photo doc
7170
shape set .cursor window .cursor.workarea
7271

7372
proc movecursor {x y} {

demos/images/doc-img.gif

20 Bytes
Loading

demos/images/doc-mask.xbm

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)