how to make a new file function in tkinter code example
Example: python tkinter askopenfile
file = askopenfile(mode ='r', filetypes =[('Python Files', '*.py'), ('Text Files', '*.txt')])
if file is not None:
content = file.read()
print(content)
file.close()