title: <TypeError: __init__() got an unexpected keyword argument 'parent'>
body: <p>I got this error <strong>---&gt;</strong> TypeError: <strong>init</strong>() got an unexpected keyword argument 'parent'</p>
  <p><strong>This is my code :</strong></p>
  <pre><code>class Manager(Tk):
  def __init__(self, *args, **kwargs):
      Tk.__init__(self, *args, **kwargs)
  
      self.geometry(f'{width}x{height}')
  
      mainframe = Frame(self, bg='red')
      mainframe.place(width=width, height=height, x=x, y=y)
      mainframe.grid_rowconfigure(0, weight=1)
      mainframe.grid_columnconfigure(0, weight=1)
  
      controller_frame = Frame(self, bg='yellow')
      controller_frame.place(width=width, height=height - 300, x=x, y=y - 300)
  
      self.the_frames = {}
      for g in [ManagerFrame, Main]:
          frame_name = g.__name__
          frame = g(parent=mainframe, controller=self)
          self.the_frames[frame_name] = frame
  
      frame.place(self, width=width, height=height, x=x, y=y)
  </code></pre>
  <p><strong>But why it gives me an error :</strong></p>
  <pre><code>Traceback (most recent call last):
    File &quot;E:الصفحة الاساسية.py&quot;, line 46, in &lt;module&gt;
      manager = Manager()
    File &quot;E:الصفحة الاساسية.py&quot;, line 25, in __init__
      frame = g(parent=mainframe, controller=self)
  TypeError: __init__() got an unexpected keyword argument 'parent'
  </code></pre>
  <p><strong>Does anybody know what is the problem with my code?</strong></p>