title: What does the 'tearoff' attribute do in a tkinter Menu?
body: <p>I often see Tkinter applications initialize <a href="http://effbot.org/tkinterbook/menu.htm" rel="noreferrer"><code>Menu</code></a> widgets using <code>tearoff=0</code> in the constructor.</p>
  
  <pre class="lang-python prettyprint-override"><code>import tkinter as tk
  
  root = tk.Tk()
  menubar = tk.Menu(root)    
  filemenu = tk.Menu(menubar, tearoff=0)
  </code></pre>
  
  <p><a href="http://effbot.org/tkinterbook/menu.htm#Tkinter.Menu.config-method" rel="noreferrer">effbot.org's documentation for <code>Menu</code></a> specifies that the default value for <code>tearoff</code> is 1, but it doesn't explain what the value is used for.</p>
  
  <pre class="lang-none prettyprint-override"><code>tearoff=
      Default value is 1. (tearOff/TearOff)
  tearoffcommand=
      No default value. (tearOffCommand/TearOffCommand)
  </code></pre>
  
  <p>What does the <code>tearoff</code> attribute do when initializing a tkinter <a href="http://effbot.org/tkinterbook/menu.htm" rel="noreferrer"><code>Menu</code></a> widget?</p>