are you trying to upload this image from every visitor of the page or just you?
I dont believe it is possible to upload a file from a visitor, because then nothing would stop you from taking any file off a persons computer.
I think you can use fileupload to select file and grab file content with FileUpload and getBytes method, so you must write a code for create file on server and write file with stream class and fill stream with filebytes result. the problem is get file path on client but i don't think any problem width save file on the server width this approch.
root = tkinter.Tk()
buttons=[i for i in range(10)]
#If specific button is pressed, output "YES"
for num in buttons: