title: How to retrieve lines from text widget individually
body: <p>I am trying to retrieve each new line in a text widget separately, I have 3 instances of <strong>Container</strong> class, the first instance prints data as expected but for second instance duplicates of first line are returned</p>
  
  <p>I am using object.get('current linestart', 'current lineend') to return new lines separately</p>
  
  <p>full code: <a href="https://pastebin.com/mLR3zbFg" rel="nofollow noreferrer">https://pastebin.com/mLR3zbFg</a></p>
  
  <pre><code>class Container(tk.Frame):
      def __init__(self, parent = None, priority = 3, bg = 'bisque'):
          self.inpList = []
          self.b = tk.Button(self.f, text = 'add', command = lambda: self.add_task(priority))
      def add_task(self, priority): # refer 1.2_text for implementation
          finished = False
          self.t = tk.Text(self.f)
          self.t.configure(height = 10, wrap = 'word')
          self.t.bind("&lt;Return&gt;", self.save_task)
          self.t.pack(fill = tk.X)
  
  
  def print_all(self):
      print(self.inpList)
  
  def save_task(self, event):
      td = self.t.get('current linestart', 'current lineend')
      self.inpList.append(td)
  
  if __name__ == '__main__':
      window = tk.Tk()
      window.minsize(300, 600)
  
      p1 = Container(window, priority = 1)
      p2 = Container(window, bg = 'blue', priority = 2)
      p3 = Container(window, bg = 'red', priority = 3)
  
      window.mainloop()
  </code></pre>