9
तो मेरे पास एक असाइनमेंट है कि मुझे बोर्ड गेम बनाने के लिए टिंकर का उपयोग करना होगा। यह कार्यक्रम का सिर्फ एक हिस्सा है जहां मैं बोर्ड की छवि को लाना चाहता हूं। लेकिन मुझे त्रुटि मिल रही है, "छवि बनाने के लिए बहुत जल्दी" और मुझे यकीन नहीं है कि मैं क्या गलत कर रहा हूं।पायथन टिंकर त्रुटि, "छवि बनाने के लिए बहुत जल्दी"
यहाँ मेरी कोड अब तक बताया गया है:
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