title: Tkinter: Mouse drag a window without borders, eg. overridedirect(1)
body: <p>Any suggestions on how one might create event bindings that would allow a user to mouse drag a window without borders, eg. a window created with <code>overridedirect(1)</code>?</p>
  
  <p>Use case: We would like to create a floating toolbar/palette window (without borders) that our users can drag around on their desktop.</p>
  
  <p>Here's where I'm at in my thinking (pseudo code):</p>
  
  <ol>
  <li><p><code>window.bind( '&lt;Button-1&gt;', onMouseDown )</code> to capture the initial position of the mouse.</p></li>
  <li><p><code>window.bind( '&lt;Motion-1&gt;', onMouseMove )</code> to track position of mouse once it starts to move.</p></li>
  <li><p>Calculate how much mouse has moved and calculate <code>newX</code>, <code>newY</code> positions.</p></li>
  <li><p>Use <code>window.geometry( '+%d+%d' % ( newX, newY ) )</code> to move window.</p></li>
  </ol>
  
  <p>Does Tkinter expose enough functionality to allow me to implement the task at hand? Or are there easier/higher-level ways to achieve what I want to do?</p>