title: tkinter - How to drag and drop widgets?
body: <p>I am trying to make a Python program in which you can move around widgets.</p>
  <p>This is my code:</p>
  <pre><code>import tkinter as tk 
  main = tk.Tk()
  notesFrame = tk.Frame(main, bd = 4, bg = &quot;a6a6a6&quot;)
  notesFrame.place(x=10,y=10)
  notes = tk.Text(notesFrame)
  notes.pack()
  notesFrame.bind(&quot;&lt;B1-Motion&gt;&quot;, lambda event: notesFrame.place(x = event.x, y = event.y)
  </code></pre>
  <p>But, this gets super glitchy and the widget jumps back and forth.</p>