I am trying to make a simple notepad using Python 3.4.1 using tkinter. I can open files using Windows Explorer window and get the path (storing file path using windows explorer browser in python , Choosing a file in Python3), but I couldn't find a way to save a file. If the user tries to saves a new file that didn't exist, it gives an error message that the file doesn't exist. I used:
from tkinter import *
app = Tk()
save_file = filedialog.askopenfilename(parent=app, title='Save')
If I type a non-existing file name and press 'Open', it gives an error message.