title: Is this something wrong with tkinter or am I blind?
body: <p>I'm not sure if I am blind or stupid or what but I keep getting the error for</p>
  <pre><code>done_button = tkinter.Button(window2, text=&quot;Done!&quot;, command=add_pass(platform,phone,email,user,password))
  </code></pre>
  <p>Error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;C:\Users\Admin\AppData\Local\Programs\Python\Python310\lib\tkinter\__init__.py&quot;, line 1921, in __call__
      return self.func(*args)
    File &quot;C:\Users\Admin\Desktop\GUI\main.py&quot;, line 37, in add
      done_button = tkinter.Button(window2, text=&quot;Done!&quot;, command=add_pass(platform,phone,email,user,password))
  TypeError: 'Button' object is not callable
  </code></pre>
  <p>I'm not sure what to do here or what to try but I feel like I hit a dead end.</p>
  <p>Code:</p>
  <pre><code>def add():
      window2 = tkinter.Tk()
      window2.title(&quot;Chase's Password Manager&quot;)
      plat_label = tkinter.Label(window2,text=&quot;Platform:&quot;)
      platform = tkinter.Entry(window2)
      phone_label = tkinter.Label(window2,text=&quot;Phone:&quot;)
      phone = tkinter.Entry(window2)
      email_label = tkinter.Label(window2,text=&quot;Email:&quot;)
      email = tkinter.Entry(window2)
      name_label = tkinter.Label(window2,text=&quot;Name:&quot;)
      user = tkinter.Entry(window2)
      pass_label = tkinter.Label(window2,text=&quot;Password:&quot;)
      password = tkinter.Entry(window2)
      done_button = tkinter.Button(window2, text=&quot;Done!&quot;, command=add_pass(platform,phone,email,user,password))
      plat_label.pack()
      platform.pack()
      phone_label.pack()
      phone.pack()
      email_label.pack()
      email.pack()
      name_label.pack()
      user.pack()
      pass_label.pack()
      password.pack()
      done_button.pack()
  </code></pre>
  <p>If you want the definition of &quot;add_pass&quot;, here it is.</p>
  <pre><code>def add_pass(platform, phone, email, user, password):
    with open('passwords.txt', 'w') as f:
      f.write(f&quot;{platform} | {phone} | {email} | {user} | &quot; + fernet.encrypt(password.encode()).decode() + &quot;\n&quot;)
  </code></pre>