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