質問するログイン新規登録

回答編集履歴

1

indent 修正

2020/04/03 07:30

投稿

teamikl
teamikl

スコア8817

answer CHANGED
@@ -30,14 +30,14 @@
30
30
  print("setpos {} {}".format(e.x, e.y))
31
31
 
32
32
  def onrelease(e):
33
- print("penup")
33
+ print("penup")
34
- s.cv.unbind("<Motion>")
34
+ s.cv.unbind("<Motion>")
35
- s.cv.unbind("<ButtonRelease-1>")
35
+ s.cv.unbind("<ButtonRelease-1>")
36
36
 
37
37
  def onpress(e):
38
- print("pendown {} {}".format(e.x, e.y))
38
+ print("pendown {} {}".format(e.x, e.y))
39
- s.cv.bind("<Motion>", onmotion)
39
+ s.cv.bind("<Motion>", onmotion)
40
- s.cv.bind("<ButtonRelease-1>", onrelease)
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")