title: How to change a entry widgets border color in Python Tkinter
body: <p>I am working on a program that has a entry widget. And when the user clicks a button and that entry widget is empty then the program will change the border color if it to red. But when I try the border just stays the same color. Which is black.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>self.timeField = Entry(self.mfr, width=40, relief=SOLID, highlightbackground="red", highlightcolor="red")
  self.timeField.grid(row=0, column=1, sticky=W)
  </code></pre>
  
  <p>Then in the if statement that checks if it is empty has this to change it to red but it does not seem to work:</p>
  
  <pre><code>self.timeField.config(highlightbackground="red")
  self.timeField.config(highlightcolor="red")
  </code></pre>
  
  <p>Can someone explain to me why this is not working, what I am doing wrong, and a way to fix it? Thanks in advance.</p>
  
  <p>Update:
  Here is the rest of the code as requested:</p>
  
  <pre><code>def start(self):
      waitTime = self.timeField.get()
      password = self.passField.get()
  
      cTime = str(self.tVers.get())
      self.cTime = cTime
  
      if waitTime.strip() != "":
          if password.strip() != "":
              if waitTime.isdigit():
                  if self.cTime == "Secs":
                      waitTime = int(waitTime)
                  elif self.timeVer == "Mins":
                      waitTime = int(waitTime) * 60
                  else:
                      waitTime = int(waitTime) * 3600
  
                  self.password = password
  
                  root.withdraw()
                  time.sleep(float(waitTime))
                  root.deiconify()
                  root.overrideredirect(True)
                  root.geometry("{0}x{1}+0+0".format(root.winfo_screenwidth(), root.winfo_screenheight()))
  
                  self.tfr.destroy()
                  self.mfr.destroy()
                  self.bfr.destroy()
  
                  self.create_lockScreen()
              else:
                  self.timeField.configure(highlightcolor="red")
          else:
              self.passFields.configure(highlightcolor="red")
      else:
          self.timeField.config(highlightbackground="red", highlightcolor="red")
  </code></pre>