I want to use the insert_picture() function and insert pictures into placeholders. But I don't want to type the name of the picture (e.g., insert_picture(xyz.png)) but let python read the filename and insert it into the insert_picture() function. For example, insert_picture(/Users/xyz/Documents/filename...).
and I want for placeholder.insert_picture(read the filename instead of writing it myself).
I don't know where to start.
Try this example.
from tkinter.filedialog import askopenfilenameButtonwidget.Snippet: