Skip to content

Commit 7257da3

Browse files
committed
Revise dragger.tcl demo to use photo shape source
1 parent 604cc3f commit 7257da3

3 files changed

Lines changed: 1 addition & 16 deletions

File tree

‎demos/dragger.tcl‎

100644100755
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ image create photo redptr -file [file join $images ptr-red.gif]
4646
image create photo greenptr -file [file join $images ptr-green.gif]
4747
image create photo doc -file [file join $images doc-img.gif]
4848
set ptrxbm @[file join $images ptr-mask.xbm]
49-
set docxbm @[file join $images doc-mask.xbm]
5049

5150
pack [label .l -justify l -text "Drag off this window to see a coloured\
5251
cursor\n(implemented using a canvas and the non-rectangular\nwindow\
@@ -65,7 +64,7 @@ set image(doc) [.cursor.workarea create image 3 4 \
6564
#pack [label .cursor.ptr -bd 0 -image greenptr]
6665
update idletasks
6766
shape set .cursor.workarea -offset 0 0 bitmap $ptrxbm
68-
shape upd .cursor.workarea + -offset 3 4 bitmap $docxbm
67+
shape upd .cursor.workarea + -offset 3 4 photo doc
6968
shape set .cursor window .cursor.workarea
7069

7170
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)