9
그래서 Tkinter를 사용하여 보드 게임을 만들어야한다는 과제가 있습니다. 이것은 내가 보드의 이미지를 가져오고 싶은 프로그램의 일부일뿐입니다. 그러나 나는 계속해서 "이미지를 생성하기에는 너무 일찍"오류가 계속 발생하며 내가 뭘 잘못하고 있는지 확신하지 못합니다.Python Tkinter 오류, "너무 일찍 이미지 만들기"
여기 내 코드는 지금까지의 :
from Tkinter import *
from pprint import pprint
# Which variable is currently updating
from variableColors import Variables
VariableIndex = 0
VariableText = Variables[VariableIndex]
Ids = None # Current canvas ids of the text and 4 player tokens:
# Will be None if not committed
VariableCoords = { } # Where store variable and coordinates
im = PhotoImage(file="C:\Users\Kiki\Desktop\Assignment\\")
photo = can.create_image(0,0,anchor=NW, image=im)
can.pack()
root.mainloop()
어떤 도움을 주시면 감사하겠습니다. 감사합니다 :)
그랬습니다. 감사! – emagdnim