1 """Draw on top of an image"""
9 img
= PhotoImage(file=filename
)
10 w
, h
= img
.width(), img
.height()
11 canv
= Canvas(root
, width
=w
, height
=h
)
12 canv
.create_image(0, 0, anchor
=NW
, image
=img
)
14 canv
.bind('<Button-1>', blob
)
18 x
, y
= event
.x
, event
.y
21 canv
.create_oval(x
-r
, y
-r
, x
+r
, y
+r
, fill
='red', outline
="")