title: How can I integrate Tkinter with Python log in screen?
body: <p>I am using Tkinter to create a login screen here. At the moment, the "keep me logged in" button at the bottom is redundant and will remain so. What I want to do is use this code:</p>
  
  <pre><code>from tkinter import *
  
  root = Tk()
  
  label_1 = Label(root, text="Username")
  label_2 = Label(root, text="Password")
  
  entry_1 = Entry(root)
  entry_2 = Entry(root)
  
  label_1.grid(row=0, sticky=E)
  label_2.grid(row=1, sticky=E)
  entry_1.grid(row=0, column=1)
  entry_2.grid(row=1, column=1)
  
  checkbox = Checkbutton(root, text="Keep me logged in")
  checkbox.grid(columnspan=2)
  </code></pre>
  
  <p>in conjunction with:</p>
  
  <pre><code>username = "john"
  input("Username: ")
  while not username:
      if username == "john":
          print("Welcome")
      else:
          print("User not found")
  
  
  password = "password"
  while not password:
      input("password: ")
      if password == "password":
          print("Logged in")
      else:
          print("Incorrect password")
  </code></pre>
  
  <p>However the logging in code does not work and then on top of that I do not know where to begin with integrating the two with each other.
  I am some what new to python and even more so to Tkinter but am desperate for this help!</p>
  
  <p>Thanks in advance!</p>