stay macos Next ( The system language is Chinese ) But use askopenfilename Function to open the file dialog box has become English , Which parameter need to be changed can be opened in the Chinese interface ? thank you
The following is the code to call the file dialog
root = tkinter.Tk() # Create a Tkinter.Tk() example root.withdraw() # take Tkinter.Tk() Instance hidden # Set the file type that the dialog box opens myFileTypes = [('Image', '*.png *.gif *.jpg *.jpeg *.bmp'), ('All files', '*')] # Request to select a file answer = filedialog.askopenfilename(initialdir=os.path.expanduser('~/Pictures/iShot screenshots '), title=" Please select the image to upload :", filetypes=myFileTypes)