from Tkinter import *
def add_note():
note_entry.insert(note.END, note_e)
f = open('/home/ppiskun/note/notes.txt')
f.write("|", note_e)
f.close()
note = Tk()
note.title("Note list")
frame = Frame(note)
frame.pack()
note_entry = Text(frame)
note_entry.grid(row=1, column=0)
note_button = Button(frame, text="Add", width=10, command=add_note)
note_button.grid(row=2, column=0)
note.mainloop()