In img tag, the src is to have an image source like mylogo.gif etc...you can't pass an php page name..if you want to make that image clickable then,put it in to anchor tag or put onClick method on that image tag....
write your line like this way:
If you are doing something like that, then this should work. On this page I pull the file from a postgres database and save it to a temporary location for processing. Read the data with file_get_contents and send it to the browser with the header "Content-type: image/jpg". the browser will read it just like any other image.
root = tkinter.Tk()
buttons=[i for i in range(10)]
#If specific button is pressed, output "YES"
for num in buttons: