How to use small single image and repeat it all over the window to make it a background image using tkinter GUI?

I have a very small 10 x 10 pixel jpg image that I want to repeat it in the whole background using tkinter.

from tkinter import *
 
root = Tk()
img = Image.open(resource_path("FILE LOCATION//filename.jpg"))
for i in range(0,1000):
    image1 = ImageTk.PhotoImage(i)
    label1 = Label(root, image=image1)
    label1.pack()

root.mainloop()

This code this iterating but not sequentially.. I am noob in tkinter GUI development. Please help.

Source: Python Questions

LEAVE A COMMENT