title: Replace python tkinter label widget with entry widget
body: <p>I want to enable double click to edit a label. Is there a way to replace the label, which user double-clicks, with entry widget without destroying it?
  This example lists label widgets and after double-click destroys it and sets entry widget at the end:</p>
  
  <pre><code>from tkinter import *
  class MainWindow:
      def __init__(self, root):
          self.root = root
          self.tasks = ['text1', 'text2', 'text3']
          self.list_tasks()
      def list_tasks(self):
          self.tasks_frame = Frame(self.root)
          for task in self.tasks:
              task_label = Label(self.tasks_frame, text=task)
              task_label.bind('&lt;Double-Button-1&gt;', self.replace_with_entry)
              task_label.pack()
          self.tasks_frame.pack()
      def replace_with_entry(self, event):
          widget = event.widget
          widget.destroy()
          entry_widget = Entry(self.tasks_frame)
          entry_widget.pack()
  root = Tk()
  main_window = MainWindow(root)
  root.mainloop()
  </code></pre>
  
  <p>I want entry widget in exactly the same place, where label was. I think it is possible with grid, but maybe there is a better way?</p>