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

質問編集履歴

1

コードにミスがあったので修正しました

2018/12/31 07:07

投稿

tomo1998
tomo1998

スコア34

title CHANGED
File without changes
body CHANGED
@@ -6,7 +6,8 @@
6
6
 
7
7
  ### 該当のソースコード
8
8
 
9
- ```ここに言語名を入力
9
+ ```python
10
+ import tkinter as tk
10
11
  class App(object):
11
12
  def GUI(self):
12
13
  root=tk.Tk()
@@ -19,9 +20,11 @@
19
20
  canvas.place(x=0, y=0)
20
21
  self.back_ground=canvas.create_image(0, 0, image=self.belt_foto, anchor=tk.NW)
21
22
 
23
+ self.Move_BackGround()
24
+
22
25
  root.mainloop()
23
26
 
24
- self.Move_BackGround()
27
+
25
28
 
26
29
  def Move_BackGround(self):
27
30
  self.back_ground["image"]=self.img002