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()
2 ответов
0
And how to change the size of the photo?
0
https://www.pythontutorial.net/tkinter/
Everything you need to know you can study it on the site above
another good source for some advanced
https://realpython.com/JUMP_LINK__&&__python__&&__JUMP_LINK-gui-tkinter/#building-your-first-python-gui-application-with-tkinter