I wish to create a loop which adds images across a screen with random positions:
photo1 = PhotoImage(file=address) #Assign image to PhotoImage
XValue = randint(0,widthOfScreen-width2) #width2 = image width
YValue = randint(0,heightOfScreen-height2) #width2 = image height
Label(mainGUI, background = "white", image = photo1, borderwidth = 0).place(x=XValue, y = YValue)
the code works and places the objects randomly but if i try and add a
time.sleep(1)
into the loop then the gui isnt made until the ned of the program with all images finished....