title: Python Unbound Method TypeError
body: <p>The method <code>get_pos</code> is supposed to grab what the user inputs in the entry. When <code>get_pos</code> is executed, it returns with:</p>
  
  <blockquote>
    <p>TypeError: unbound method get_pos() must be called with app instance as first argument (got nothing instead)</p>
  </blockquote>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>class app(object):
      def __init__(self,root):
          self.functionframe=FunctionFrame(root, self)
              self.functionframe.pack(side=BOTTOM)
      def get_pos(self):
          self.functionframe.input(self)
  class FunctionFrame(Frame):
      def __init__(self,master,parent):
          Frame.__init__(self,master,bg="grey90")
          self.entry = Entry(self,width=15)
          self.entry.pack
      def input(self):
          self.input = self.entry.get()
          return self.input
  </code></pre>