I used this python function to open a picture using a python script:
import os
class ReadPicture:
def readPicture(self):
os.startfile('picture.jpg')
if __name__=='__main__':
RP.ReadPicture()
RP.readPicture()
The image is opened with its default application on Windows. Can you tell me how to close the opened picture now ? Thanks for any suggestions.
Why do not I use PIL ? Because it does not do what I want:
When operation is not specified or 'open', this acts like double-clicking the file in Windows Explorer
Yes, I want to open the picture as in a double-click behavior.