Help me please😭😭😭 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Help me please😭😭😭

When opening this program, a white field flashes to me, the pictures are not displayed. How to make a picture appear? from tkinter import * import random window = Tk() canvas = Canvas(window, width=1000, height=600) canvas.pack() background = PhotoImage(file = r"/storage/emulated/0/Download/VK/Занятие 4/Доп. материалы/bg_2.png") window.mainloop()

27th Jan 2023, 4:50 PM
python
2 Answers
0
And how to change the size of the photo?
27th Jan 2023, 6:02 PM
python
27th Jan 2023, 6:30 PM
Ion Kare
Ion Kare - avatar