回答編集履歴
1
indent 修正
answer
CHANGED
@@ -30,14 +30,14 @@
|
|
30
30
|
print("setpos {} {}".format(e.x, e.y))
|
31
31
|
|
32
32
|
def onrelease(e):
|
33
|
-
|
33
|
+
print("penup")
|
34
|
-
|
34
|
+
s.cv.unbind("<Motion>")
|
35
|
-
|
35
|
+
s.cv.unbind("<ButtonRelease-1>")
|
36
36
|
|
37
37
|
def onpress(e):
|
38
|
-
|
38
|
+
print("pendown {} {}".format(e.x, e.y))
|
39
|
-
|
39
|
+
s.cv.bind("<Motion>", onmotion)
|
40
|
-
|
40
|
+
s.cv.bind("<ButtonRelease-1>", onrelease)
|
41
41
|
|
42
42
|
s.cv.bind("<ButtonPress-1>", onpress)
|
43
43
|
t.write("Apple", None, "center", "serif 64 bold")
|