title: Python Creating a Button class
body: <p>Okay I am having some weird problems...I created a Named_Button class</p>
  
  <pre><code>class Named_Button(tkinter.Button):
      def __init__(self,name='NoName',master,**k):
              tkinter.Button.__init__(master,**k)
              self.pack()
              self.name = name
   root = Tk()
   Named_Button(root,name='hi',height='4')
   root.mainloop()
  </code></pre>
  
  <p>On trying to create the button I get the following error:</p>
  
  <pre><code>AttributeError: 'Named_Button' object has no attribute 'tk'
  </code></pre>
  
  <p>Any ideas?</p>