title: Why do I get an error when I leave out "from tkinter import *"?
body: <p>In the following code I get an error when leaving out &quot;from tkinter import *. I am confused as to the reason as I <code>import tkinter as tk</code>.
  I tried modifying the function <code>set_text</code> without success.
  The error is on
  <code>self.e.delete(0,END)</code>
  NameError: name 'END' is not defined`</p>
  <p>Code:</p>
  <pre class="lang-py prettyprint-override"><code>from tkinter import *
  
  import tkinter as tk
  
  from tkinter import ttk
  
  
  class HelperFun():
  
      def set_text(self,parent,text):
  
              self.e.delete(0,END)
  
              self.e.insert(0,text)
  
              return    
  
      def __init__(self,parent):
  
          self.parent=parent
  
          self.e = tk.Entry(self.parent,width=10)
  
          self.e.pack()
  
          self.b1 = tk.Button(self.parent,text=&quot;animal&quot;,
  
                  command=lambda:self.set_text(self.parent,&quot;animal&quot;))
  
          ...
  
  root=tk.Tk()
  
  HelperFun(root)
  
  root.mainloop()
  </code></pre>
  <p>Thank you.</p>