title: How to clear Tkinter ListBox Python
body: <p>How to clear a listbox when a button is clicked to re-populate it? The code below is giving me an error.</p>
  
  <p>code:</p>
  
  <pre><code>self.listNodes.delete(0,END)
  </code></pre>
  
  <p>error:</p>
  
  <pre><code>NameError: name 'END' is not defined
  </code></pre>