i am getting error message "Fail to Allocate Bitmap", i need add more than one lakh images of 16X16 Pixels in to canvas. please help. it gives error after loading 4989 bitmaps.
rowimage = {}
x= 1
for row in range(135):
for col in range(448):
filename = str((col) * 16) + ',' + str((row) * 16)
if filename in images:
rowimage[filename] = PhotoImage(
file="F:/Symbols/" + images[filename])
canvas.create_image(((col)*16) + 8, ((row)*16) + 8, image=rowimage[filename],
anchor='center')
x = x + 1
print(x)
rowimage = {}
x= 1
for row in range(135):
for col in range(448):
filename = str((col) * 16) + ',' + str((row) * 16)
if filename in images:
rowimage[filename] = PhotoImage(
file="F:/Symbols/" + images[filename])
canvas.create_image(((col)*16) + 8, ((row)*16) + 8, image=rowimage[filename],
anchor='center')
x = x + 1
print(x)