title: Can someone answer why this Tkinter doesn't work?
body: <h1>I'M SO CONFUSED</h1>
  <p><strong>Keep in mind that I'm a beginner at programming/python so if my code is unorganized or badly worded, ignore it, I'm getting better lol</strong></p>
  <p>I'm just playing with tkinter and I'm trying to get a login screen that has a checkbox that toggles the visibility of the password. I just don't understand anymore. The &quot;show&quot; argument won't change based on the variable it was assigned and I don't know why.</p>
  <pre><code>showPassword = IntVar()
  show = None
  
  def apply():
      print(showPassword.get())
      sspass = showPassword.get()
      print(type(sspass))
      if sspass == 1:
          show = None
      elif sspass == 0:
          show = &quot;*&quot;
  
  
  spB = Checkbutton(root, text=&quot;Toggle Show Password&quot;, variable=showPassword).grid(row=10, column=1)
  
  applyButton = Button(root, text=&quot;Apply&quot;, command=apply).grid(column=1, row=5)
  
  Password = entry(root, show=show) 
  </code></pre>