text: import tkinter
  
  #função
  
  def addComment():
      coment = inputComment.get()
      commentsList.insert(0, coment)
      inputComment.delete(0, tkinter.END)
      
      
  
  #main frame
  root = tkinter.Tk()
  root.geometry('400x400+3200+100')
  root.wm_title('Anotações')
  
  #list box #frame
  
  commentsFrame = tkinter.LabelFrame(root, text='Anotações')
  commentsFrame.place(relwidth=1, relheight=0.5)
  
  commentsList = tkinter.Listbox(commentsFrame)
  commentsList.place(relwidth=1, relheight=0.5)
  
  #opções LabelFrame
  optionsFrame = tkinter.LabelFrame(root, text='Opções')
  optionsFrame.place(relwidth=1, relheight=0.5, rely=0.5)
  
  inputCommentFrame = tkinter.LabelFrame(optionsFrame, text='Nova anotação')
  inputCommentFrame.place(relwidth=1, relheight=0.4)
  
  inputComment = tkinter.Entry(inputCommentFrame)
  inputComment.place(relwidth=0.75, relheight=1)
  
  #botao
  btnComment = tkinter.Button(inputCommentFrame, text='Anotar', command=addComment)
  btnComment.place(relwidth=0.25, relheight=0.5, relx=0.75)
  
  btnDelete = tkinter.Button(optionsFrame, text='Deletar', command=delcoment)
  btn
  
  #start app
  root.mainloop()
  
  